Chat
Base Path: /v1/chat
Process Chat Completion
Method: POST
Endpoint: https://api.tokensource.com/v1/chat
Description: Processes a chat completion request.
Request Body:
{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What is the capital of France?"
}
],
"temperature": 0.7,
"max_tokens": 100,
"conversationExternalId": "uuid-123",
"objectiveId": 1,
"aiAssistantId": 1
}Response (200 OK):
Response (400 Bad Request):
Last updated