docs: comments

This commit is contained in:
0xSage 2023-11-22 18:40:24 +08:00
parent 17f46d640b
commit ac1075fcd7

View File

@ -74,7 +74,7 @@ Here's an example `message` response from an assistant.
"thread_id": "thread_asdf", // Defaults to parent thread "thread_id": "thread_asdf", // Defaults to parent thread
"assistant_id": "jan", // Defaults to parent thread "assistant_id": "jan", // Defaults to parent thread
"role": "assistant", // From either "user" or "assistant" "role": "assistant", // From either "user" or "assistant"
"content": [ "content": [ // Usually from Chat Completion obj
{ {
"type": "text", "type": "text",
"text": { "text": {
@ -86,6 +86,7 @@ Here's an example `message` response from an assistant.
"metadata": {}, // Defaults to {} "metadata": {}, // Defaults to {}
// "run_id": "...", // KIV // "run_id": "...", // KIV
// "file_ids": [], // KIV // "file_ids": [], // KIV
// "usage": {} // KIV: saving chat completion properties https://platform.openai.com/docs/api-reference/chat/object
``` ```
## API Reference ## API Reference