Skip to content

Commit a05ab23

Browse files
committed
updated docs
1 parent c2607c2 commit a05ab23

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

api-reference/llm_queries/chat_completions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ curl --request POST \
194194
"response_format": "{ \"type\": \"json_mode\"}",
195195
"seed": 11,
196196
"stream_options": [
197-
true,
198-
"include_usage"
197+
"include_usage",
198+
true
199199
],
200200
"top_p": 0.5,
201201
"tool_choice": "{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}",
@@ -218,7 +218,7 @@ url = "https://api.unify.ai/v0/chat/completions"
218218

219219
headers = {"Authorization": "Bearer <token>"}
220220

221-
json_input = {"messages": [{"content": "Tell me a joke", "role": "user"}], "model": "gpt-4o-mini@openai", "max_tokens": 1024, "stop": ["The End.", " is the answer."], "stream": False, "temperature": 0.9, "frequency_penalty": 1.5, "logit_bias": {"0": 10, "1": -75, "2": 90}, "logprobs": False, "top_logprobs": 15, "n": 15, "presence_penalty": -1.1, "response_format": "{ "type": "json_mode"}", "seed": 11, "stream_options": [True, "include_usage"], "top_p": 0.5, "tool_choice": "{"type": "function", "function": {"name": "my_function"}}", "parallel_tool_calls": True, "user": "some_user", "signature": "python", "use_custom_keys": True, "tags": ["user123", "CompanyABC"], "drop_params": True}
221+
json_input = {"messages": [{"content": "Tell me a joke", "role": "user"}], "model": "gpt-4o-mini@openai", "max_tokens": 1024, "stop": ["The End.", " is the answer."], "stream": False, "temperature": 0.9, "frequency_penalty": 1.5, "logit_bias": {"0": 10, "1": -75, "2": 90}, "logprobs": False, "top_logprobs": 15, "n": 15, "presence_penalty": -1.1, "response_format": "{ "type": "json_mode"}", "seed": 11, "stream_options": ["include_usage", True], "top_p": 0.5, "tool_choice": "{"type": "function", "function": {"name": "my_function"}}", "parallel_tool_calls": True, "user": "some_user", "signature": "python", "use_custom_keys": True, "tags": ["user123", "CompanyABC"], "drop_params": True}
222222

223223
response = requests.request("POST", url, json=json_input, headers=headers)
224224

api-reference/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14373,8 +14373,8 @@
1437314373
"title": "Stream Options",
1437414374
"description": "Options for streaming response. Only set this when you set `stream: true`.",
1437514375
"example": [
14376-
true,
14377-
"include_usage"
14376+
"include_usage",
14377+
true
1437814378
]
1437914379
},
1438014380
"top_p": {

0 commit comments

Comments
 (0)