Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload file or reference to file #343

Open
bpinsker opened this issue Mar 18, 2025 · 5 comments
Open

Upload file or reference to file #343

bpinsker opened this issue Mar 18, 2025 · 5 comments

Comments

@bpinsker
Copy link

How can I upload a file or reference to file, for ask AI task, file analize for example?

@aandrew-me
Copy link
Owner

You can pipe the content,
cat filename.txt | tgpt "Analyze the file"

@bpinsker
Copy link
Author

bpinsker commented Mar 18, 2025

i try, : cat info.txt | tgpt "Analyze the file"

'cat' is not recognized as an internal or external command,
operable program or batch file.
cat - not recognize in Windows-10. Need to install ?

I found:
in Windows need : type info.txt | tgpt "Analyze the file"
its working ok.

What about pdf or, doc or image file?
thanks.

@aandrew-me
Copy link
Owner

I didn't add functionality to add pdf, doc or image files because only the paid providers support them

@johnd0e
Copy link
Contributor

johnd0e commented Mar 19, 2025

because only the paid providers support them

What about gemini

@rizazmaz
Copy link

rizazmaz commented Mar 29, 2025

If you want to use files in pdf format, you can use the pdftotext library as a stdin

example command:

pdftotext -layout 'file.pdf' - | tgpt "Something you want"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants