cURL
curl --request POST \ --url https://api.scholarai.io/api/chat/completions \ --header 'Content-Type: application/json' \ --header 'x-scholarai-api-key: <api-key>' \ --data '{ "model": "<string>", "messages": [ { "role": "<string>", "content": "<string>" } ], "stream": true }'
Mimics the input and output to the OpenAI Chat Completion API: https://platform.openai.com/docs/api-reference/chat/create
Stream based on OpenAI Completions structure