Skip to content

Post to /api/question #90

Answered by gdziuba
gdziuba asked this question in Q&A
Aug 5, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I figured it out. It was two parts. I couldn't send the question in the form of json and I had the wrong endpoint. Needed an s at the end.

/api/question
curl -X POST -H "Content-Type: multipart/form-data" -F "Question=Who is the oldest little rascal?" -F "Model=GPT3Dot5Turbo" -F "UUID=<<My UUID>>" -F "ApiKey=<<MYAPI>>" http://<<IP>>:8100/api/questions

and for those that are curious
/upload
curl -X POST -H "Content-Type: multipart/form-data" -F "files=@/tmp/file.txt" -F "uuid=<<UUID>>" -F "apikey=<<API>>" http://<<API>>:5000/upload

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BenutzerEinsZweiDrei
Comment options

Answer selected by gdziuba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants