Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
unify-dev-bot committed Feb 24, 2025
1 parent 0f73f3b commit 44c1ceb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions api-reference/llm_queries/chat_completions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ curl --request POST \
"response_format": "{ \"type\": \"json_mode\"}",
"seed": 11,
"stream_options": [
"include_usage",
true
true,
"include_usage"
],
"top_p": 0.5,
"tool_choice": "{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}",
Expand All @@ -218,7 +218,7 @@ url = "https://api.unify.ai/v0/chat/completions"

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

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}
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}

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

Expand Down
2 changes: 1 addition & 1 deletion api-reference/logs/get_fields.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Each field entry contains:
Name of the project to get fields and their types for.
</ParamField>

<ParamField query="context" type="string | null" default={default}>
<ParamField query="context" type="string | null" >
Optional context name to filter field types
</ParamField>

Expand Down
2 changes: 1 addition & 1 deletion api-reference/logs/get_logs_metric.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The key you would like to extract the reduction metric for.
Name of the project to get entries from.
</ParamField>

<ParamField query="context" type="string | null" default={default}>
<ParamField query="context" type="string | null" >
Static context to filter logs by.
</ParamField>

Expand Down
2 changes: 1 addition & 1 deletion api-reference/logs/rename_field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The operation is atomic - either all renames succeed or none do.
Name of the project the field belongs to.
</ParamField>

<ParamField body="context" type="string | null" default={"default"}>
<ParamField body="context" type="string | null" default={""}>
The context of the field to rename.
</ParamField>

Expand Down
10 changes: 5 additions & 5 deletions api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3907,7 +3907,7 @@
}
],
"description": "Static context to filter logs by.",
"default": "default",
"default": "",
"title": "Context"
},
"description": "Static context to filter logs by.",
Expand Down Expand Up @@ -4269,7 +4269,7 @@
}
],
"description": "Optional context name to filter field types",
"default": "default",
"default": "",
"title": "Context"
},
"description": "Optional context name to filter field types",
Expand Down Expand Up @@ -5133,8 +5133,8 @@
"title": "Stream Options",
"description": "Options for streaming response. Only set this when you set `stream: true`.",
"example": [
"include_usage",
true
true,
"include_usage"
]
},
"top_p": {
Expand Down Expand Up @@ -6260,7 +6260,7 @@
],
"title": "Context",
"description": "The context of the field to rename.",
"default": "default",
"default": "",
"example": "test-context"
},
"old_field_name": {
Expand Down

0 comments on commit 44c1ceb

Please sign in to comment.