Response Format
Understand the response structure from the Kodesage Chat API such as parse returned data, errors and common response patterns.
Success Response (200 OK)
{
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "The authentication mechanism uses Spring Security..."
}
}
]
}Response Fields
choices - Array of completion choices (currently always contains one)
index - Choice index (always 0 )
message - The AI's response message
role - Always assistant
content - The AI-generated response with natural citations
Last updated

