You can also use your own OpenAI-compatible server as the LLM. If your server requires authentication, POST your server's API key via the /credential endpoint:
{
"provider": "custom-llm",
"apiKey": "<YOUR SERVER API KEY>"
}
Then create an assistant using the custom-llm provider:
{
"name": "My Assistant",
"model": {
"provider": "custom-llm",
"url": "<YOUR OPENAI COMPATIBLE ENDPOINT BASE URL>",
"model": "my-cool-model",
"messages": [
{
"role": "system",
"content": "You are an assistant."
}
],
"temperature": 0.7
}
}
For best results, your custom server endpoint should support streaming completions.