-
Can someone give me an example curl statement that will allow me ask questions? Here is my curl statement:
I have been able to upload a file remotely, but haven't been able to ask it a question after uploading a file. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 and for those that are curious |
Beta Was this translation helpful? Give feedback.
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