Can I call OpenAI Assistants APIs without using the provided SDKs?
I would like to execute my File Search Assistant calling the API “manually”, without using the OpenAI SDK.
Thanks
Can I call OpenAI Assistants APIs without using the provided SDKs?
I would like to execute my File Search Assistant calling the API “manually”, without using the OpenAI SDK.
Thanks
You certainly can. Most endpoints send and receive RESTful API JSON objects, while others receive multipart/form-data or return binary chunk http streams.
The API Reference has CURL examples selectable above code samples, showing the method of sending of direct requests, and contents.
Yes, there are official SDKs, non-official SDKS, and good old fashioned REST requests. There are even examples of making requests like throughout the OpenAI API documentation.
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "OpenAI-Organization: YOUR_ORG_ID" \
-H "OpenAI-Project: $PROJECT_ID"