Streams chat completions for a conversation (Auth policies: ApiKeyOrJwt)
Chat
Streams chat completions for a conversation (Auth policies: ApiKeyOrJwt)
Sample request with IDs:
POST /api/chat/completions
{
"stream": true,
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"dataSources": [
{
"type": "workspace",
"id": "123456"
}
]
}
Sample request with names:
POST /api/chat/completions
{
"stream": true,
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"names": ["MyWorkspace", "my-repository"]
}
POST
Streams chat completions for a conversation (Auth policies: ApiKeyOrJwt)
Authorizations
API Key authentication using Bearer token. Example: "Authorization: Bearer {apiKey}"
Headers
Body
The chat completion request
Response
OK
The response is of type string.