From 9c0a7656ad924f2bd3e77f1d05d62112ee0fe647 Mon Sep 17 00:00:00 2001 From: unify-dev-bot Date: Wed, 15 Jan 2025 14:22:57 +0000 Subject: [PATCH] updated docs --- .../llm_queries/chat_completions.mdx | 6 +- api-reference/openapi.json | 4 +- python/classes/interfaces/dataset/Dataset.mdx | 46 ++--- python/classes/interfaces/logs/Context.mdx | 8 +- python/classes/interfaces/logs/Entries.mdx | 8 +- python/classes/interfaces/logs/Experiment.mdx | 8 +- python/classes/interfaces/logs/Log.mdx | 40 ++--- python/classes/interfaces/logs/Params.mdx | 8 +- .../classes/universal_api/chatbot/ChatBot.mdx | 12 +- .../clients/multi_llm/AsyncMultiUnify.mdx | 164 ++++++++--------- .../clients/multi_llm/MultiUnify.mdx | 164 ++++++++--------- .../clients/uni_llm/AsyncUnify.mdx | 168 +++++++++--------- .../universal_api/clients/uni_llm/Unify.mdx | 168 +++++++++--------- .../universal_api/types/prompt/Prompt.mdx | 20 +-- .../utils/endpoint_metrics/Metrics.mdx | 8 +- python/functions/interfaces/logs/traced.mdx | 2 +- .../utils/artifacts/add_project_artifacts.mdx | 2 +- .../artifacts/delete_project_artifact.mdx | 2 +- .../utils/artifacts/get_project_artifacts.mdx | 2 +- .../utils/compositions/add_params.mdx | 2 +- .../compositions/delete_logs_by_value.mdx | 2 +- .../utils/compositions/get_log_by_value.mdx | 2 +- .../utils/compositions/get_logs_by_id.mdx | 2 +- .../utils/compositions/get_logs_by_value.mdx | 2 +- .../compositions/get_logs_with_fields.mdx | 2 +- .../compositions/get_logs_without_fields.mdx | 2 +- .../utils/compositions/get_params.mdx | 2 +- .../utils/compositions/get_source.mdx | 2 +- .../utils/compositions/group_logs.mdx | 2 +- .../compositions/group_logs_by_configs.mdx | 2 +- .../utils/compositions/rename_log_entries.mdx | 2 +- .../utils/compositions/rename_log_params.mdx | 2 +- .../compositions/replace_log_entries.mdx | 2 +- .../utils/compositions/replace_log_params.mdx | 2 +- .../utils/compositions/update_log_entries.mdx | 2 +- .../utils/compositions/update_log_params.mdx | 2 +- .../utils/datasets/add_dataset_entries.mdx | 2 +- .../datasets/create_dataset_artifacts.mdx | 2 +- .../utils/datasets/delete_dataset.mdx | 2 +- .../datasets/delete_dataset_artifact.mdx | 2 +- .../utils/datasets/delete_dataset_entry.mdx | 2 +- .../utils/datasets/download_dataset.mdx | 2 +- .../datasets/download_dataset_artifacts.mdx | 2 +- .../utils/datasets/get_dataset_entry.mdx | 2 +- .../utils/datasets/list_datasets.mdx | 2 +- .../utils/datasets/rename_dataset.mdx | 2 +- .../utils/datasets/upload_dataset.mdx | 2 +- .../interfaces/utils/logs/add_log_entries.mdx | 2 +- .../interfaces/utils/logs/add_log_params.mdx | 2 +- .../utils/logs/delete_log_fields.mdx | 2 +- .../interfaces/utils/logs/delete_logs.mdx | 2 +- .../interfaces/utils/logs/get_groups.mdx | 2 +- .../interfaces/utils/logs/get_log_by_id.mdx | 2 +- .../interfaces/utils/logs/get_logs.mdx | 2 +- .../interfaces/utils/logs/get_logs_metric.mdx | 2 +- .../functions/interfaces/utils/logs/log.mdx | 2 +- .../utils/projects/create_project.mdx | 2 +- .../utils/projects/delete_project.mdx | 2 +- .../utils/projects/list_projects.mdx | 2 +- .../utils/projects/rename_project.mdx | 2 +- .../functions/universal_api/casting/cast.mdx | 2 +- .../universal_api/casting/try_cast.mdx | 2 +- .../universal_api/usage/with_logging.mdx | 2 +- .../utils/credits/get_credits.mdx | 2 +- .../custom_api_keys/create_custom_api_key.mdx | 2 +- .../custom_api_keys/delete_custom_api_key.mdx | 2 +- .../custom_api_keys/get_custom_api_key.mdx | 2 +- .../custom_api_keys/list_custom_api_keys.mdx | 2 +- .../custom_api_keys/rename_custom_api_key.mdx | 2 +- .../create_custom_endpoint.mdx | 2 +- .../delete_custom_endpoint.mdx | 2 +- .../list_custom_endpoints.mdx | 2 +- .../rename_custom_endpoint.mdx | 2 +- .../delete_endpoint_metrics.mdx | 2 +- .../endpoint_metrics/get_endpoint_metrics.mdx | 2 +- .../endpoint_metrics/log_endpoint_metric.mdx | 2 +- .../utils/queries/get_queries.mdx | 2 +- .../utils/queries/get_query_metrics.mdx | 2 +- .../utils/queries/get_query_tags.mdx | 2 +- .../universal_api/utils/queries/log_query.mdx | 2 +- .../supported_endpoints/list_endpoints.mdx | 2 +- .../utils/supported_endpoints/list_models.mdx | 2 +- .../supported_endpoints/list_providers.mdx | 2 +- python/functions/utils/map/map.mdx | 2 +- 84 files changed, 485 insertions(+), 485 deletions(-) diff --git a/api-reference/llm_queries/chat_completions.mdx b/api-reference/llm_queries/chat_completions.mdx index ffe10fc39..81aa044ae 100644 --- a/api-reference/llm_queries/chat_completions.mdx +++ b/api-reference/llm_queries/chat_completions.mdx @@ -194,8 +194,8 @@ curl --request POST \ "response_format": "{ \"type\": \"json_mode\"}", "seed": 11, "stream_options": [ - true, - "include_usage" + "include_usage", + true ], "top_p": 0.5, "tool_choice": "{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}", @@ -218,7 +218,7 @@ url = "https://api.unify.ai/v0/chat/completions" headers = {"Authorization": "Bearer "} -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} +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} response = requests.request("POST", url, json=json_input, headers=headers) diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 6906b782c..13ab454fc 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -4661,8 +4661,8 @@ "title": "Stream Options", "description": "Options for streaming response. Only set this when you set `stream: true`.", "example": [ - true, - "include_usage" + "include_usage", + true ] }, "top_p": { diff --git a/python/classes/interfaces/dataset/Dataset.mdx b/python/classes/interfaces/dataset/Dataset.mdx index 5f3a3664d..908d4ea97 100644 --- a/python/classes/interfaces/dataset/Dataset.mdx +++ b/python/classes/interfaces/dataset/Dataset.mdx @@ -6,13 +6,13 @@ title: 'Dataset' class Dataset ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L14)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L14)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L16)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L16)

```python def __init__( @@ -48,7 +48,7 @@ Initialize a local dataset. ### name -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L61)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L63)

```python def name(self) -> str: @@ -62,7 +62,7 @@ Name of the dataset. ### set\_name -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L78)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L80)

```python def set_name(self, name: str) -> Self: @@ -86,7 +86,7 @@ This dataset, useful for chaining methods. ### add -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L251)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L253)

```python def add( @@ -119,7 +119,7 @@ The new dataset following the addition. ### download -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L175)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L177)

```python def download(self, overwrite: bool = False) -> Self: @@ -144,7 +144,7 @@ This dataset after the in-place download, useful for chaining methods. ### from\_upstream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L91)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L93)

```python def from_upstream( @@ -176,7 +176,7 @@ The dataset, with contents downloaded from upstream. ### inplace\_add -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L300)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L302)

```python def inplace_add( @@ -209,7 +209,7 @@ This dataset following the in-place addition. ### inplace\_sub -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L329)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L331)

```python def inplace_sub( @@ -235,7 +235,7 @@ This dataset following the in-place subtraction. ### sub -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L278)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L280)

```python def sub( @@ -261,7 +261,7 @@ The new dataset following the subtraction. ### sync -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L211)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L213)

```python def sync(self) -> Self: @@ -278,7 +278,7 @@ This dataset after the in-place sync, useful for chaining methods. ### upload -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L130)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L132)

```python def upload(self, overwrite: bool = False) -> Self: @@ -303,7 +303,7 @@ This dataset, useful for chaining methods. ### upstream\_diff -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L223)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L225)

```python def upstream_diff(self) -> Self: @@ -321,7 +321,7 @@ This dataset after printing the diff, useful for chaining methods. ### \_\_add\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L353)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L355)

```python def __add__( @@ -348,7 +348,7 @@ The new dataset following the addition. ### \_\_contains\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L474)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L476)

```python def __contains__( @@ -375,7 +375,7 @@ Boolean, whether the passed Dataset is a subset of this one. ### \_\_getitem\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L504)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L506)

```python def __getitem__(self, item: Union[int, slice]) -> Union[Any, Dataset]: @@ -399,7 +399,7 @@ An individual item or Dataset slice, for int and slice queries respectively. ### \_\_iadd\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L397)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L399)

```python def __iadd__( @@ -425,7 +425,7 @@ This dataset following the in-place addition. ### \_\_isub\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L448)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L450)

```python def __isub__( @@ -451,7 +451,7 @@ This dataset following the in-place subtraction. ### \_\_iter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L464)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L466)

```python def __iter__(self) -> Any: @@ -467,7 +467,7 @@ The next instance in the dataset. ### \_\_len\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L495)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L497)

```python def __len__(self) -> int: @@ -483,7 +483,7 @@ The number of entries in the dataset. ### \_\_radd\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L370)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L372)

```python def __radd__( @@ -518,7 +518,7 @@ The new dataset following the addition. ### \_\_rsub\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L430)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L432)

```python def __rsub__( @@ -546,7 +546,7 @@ The new dataset following the subtraction. ### \_\_sub\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/dataset.py#L413)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/dataset.py#L415)

```python def __sub__( diff --git a/python/classes/interfaces/logs/Context.mdx b/python/classes/interfaces/logs/Context.mdx index 16e2b6ed7..adfb0e046 100644 --- a/python/classes/interfaces/logs/Context.mdx +++ b/python/classes/interfaces/logs/Context.mdx @@ -6,13 +6,13 @@ title: 'Context' class Context ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L139)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L139)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L141)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L141)

```python def __init__(self, context: str): @@ -26,7 +26,7 @@ def __init__(self, context: str): ### \_\_enter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L144)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L144)

```python def __enter__(self): @@ -38,7 +38,7 @@ def __enter__(self): ### \_\_exit\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L149)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L149)

```python def __exit__(self, *args, **kwargs): diff --git a/python/classes/interfaces/logs/Entries.mdx b/python/classes/interfaces/logs/Entries.mdx index 565f676a4..d49014f20 100644 --- a/python/classes/interfaces/logs/Entries.mdx +++ b/python/classes/interfaces/logs/Entries.mdx @@ -6,13 +6,13 @@ title: 'Entries' class Entries ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L153)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L153)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L155)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L155)

```python def __init__(self, **entries): @@ -26,7 +26,7 @@ def __init__(self, **entries): ### \_\_enter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L158)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L158)

```python def __enter__(self): @@ -38,7 +38,7 @@ def __enter__(self): ### \_\_exit\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L166)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L166)

```python def __exit__(self, *args, **kwargs): diff --git a/python/classes/interfaces/logs/Experiment.mdx b/python/classes/interfaces/logs/Experiment.mdx index dc4fe212a..9bb911378 100644 --- a/python/classes/interfaces/logs/Experiment.mdx +++ b/python/classes/interfaces/logs/Experiment.mdx @@ -6,13 +6,13 @@ title: 'Experiment' class Experiment ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L193)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L193)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L195)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L195)

```python def __init__(self, name: str): @@ -26,7 +26,7 @@ def __init__(self, name: str): ### \_\_enter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L198)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L198)

```python def __enter__(self): @@ -38,7 +38,7 @@ def __enter__(self): ### \_\_exit\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L206)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L206)

```python def __exit__(self, *args, **kwargs): diff --git a/python/classes/interfaces/logs/Log.mdx b/python/classes/interfaces/logs/Log.mdx index 5d3c20277..fba5c61f3 100644 --- a/python/classes/interfaces/logs/Log.mdx +++ b/python/classes/interfaces/logs/Log.mdx @@ -6,13 +6,13 @@ title: 'Log' class Log ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L18)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L18)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L20)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L20)

```python def __init__( @@ -35,7 +35,7 @@ def __init__( ### entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L47)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L47)

```python def entries(self) -> Dict[str, Any]: @@ -47,7 +47,7 @@ def entries(self) -> Dict[str, Any]: ### id -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L39)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L39)

```python def id(self) -> int: @@ -59,7 +59,7 @@ def id(self) -> int: ### params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L51)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L51)

```python def params(self) -> Dict[str, Any]: @@ -71,7 +71,7 @@ def params(self) -> Dict[str, Any]: ### ts -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L43)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L43)

```python def ts(self) -> Optional[datetime]: @@ -85,7 +85,7 @@ def ts(self) -> Optional[datetime]: ### add\_entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L73)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L73)

```python def add_entries(self, **entries) -> None: @@ -97,7 +97,7 @@ def add_entries(self, **entries) -> None: ### delete -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L101)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L101)

```python def delete(self) -> None: @@ -109,7 +109,7 @@ def delete(self) -> None: ### delete\_entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L93)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L93)

```python def delete_entries( @@ -124,7 +124,7 @@ def delete_entries( ### download -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L70)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L70)

```python def download(self): @@ -136,7 +136,7 @@ def download(self): ### from\_json -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L113)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L113)

```python def from_json(state): @@ -148,7 +148,7 @@ def from_json(state): ### rename\_entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L87)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L87)

```python def rename_entries(self, **entries) -> None: @@ -160,7 +160,7 @@ def rename_entries(self, **entries) -> None: ### replace\_entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L77)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L77)

```python def replace_entries(self, **entries) -> None: @@ -172,7 +172,7 @@ def replace_entries(self, **entries) -> None: ### to\_json -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L104)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L104)

```python def to_json(self): @@ -184,7 +184,7 @@ def to_json(self): ### update\_entries -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L81)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L81)

```python def update_entries(self, fn, **entries) -> None: @@ -198,7 +198,7 @@ def update_entries(self, fn, **entries) -> None: ### \_\_enter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L122)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L122)

```python def __enter__(self): @@ -210,7 +210,7 @@ def __enter__(self): ### \_\_eq\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L57)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L57)

```python def __eq__(self, other: Union[dict, Log]) -> bool: @@ -222,7 +222,7 @@ def __eq__(self, other: Union[dict, Log]) -> bool: ### \_\_exit\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L134)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L134)

```python def __exit__(self, exc_type, exc_val, exc_tb): @@ -234,7 +234,7 @@ def __exit__(self, exc_type, exc_val, exc_tb): ### \_\_len\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L62)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L62)

```python def __len__(self): @@ -246,7 +246,7 @@ def __len__(self): ### \_\_repr\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L65)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L65)

```python def __repr__(self) -> str: diff --git a/python/classes/interfaces/logs/Params.mdx b/python/classes/interfaces/logs/Params.mdx index b6a939fc9..7cf664dcb 100644 --- a/python/classes/interfaces/logs/Params.mdx +++ b/python/classes/interfaces/logs/Params.mdx @@ -6,13 +6,13 @@ title: 'Params' class Params ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L173)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L173)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L175)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L175)

```python def __init__(self, **params): @@ -26,7 +26,7 @@ def __init__(self, **params): ### \_\_enter\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L178)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L178)

```python def __enter__(self): @@ -38,7 +38,7 @@ def __enter__(self): ### \_\_exit\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L186)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L186)

```python def __exit__(self, *args, **kwargs): diff --git a/python/classes/universal_api/chatbot/ChatBot.mdx b/python/classes/universal_api/chatbot/ChatBot.mdx index 559acdef3..a6f7ef7c5 100644 --- a/python/classes/universal_api/chatbot/ChatBot.mdx +++ b/python/classes/universal_api/chatbot/ChatBot.mdx @@ -6,13 +6,13 @@ title: 'ChatBot' class ChatBot ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L9)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L9)

Agent class represents an LLM chat agent. ### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L12)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L12)

```python def __init__( @@ -33,7 +33,7 @@ Initializes the ChatBot object, wrapped around a client. ### client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L30)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L30)

```python def client(self) -> _Client: @@ -51,7 +51,7 @@ The client. ### set\_client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L40)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L40)

```python def set_client(self, value: client) -> None: @@ -69,7 +69,7 @@ Set the client. ### clear\_chat\_history -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L95)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L95)

```python def clear_chat_history(self) -> None: @@ -81,7 +81,7 @@ Clears the chat history. ### run -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/chatbot.py#L157)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/chatbot.py#L157)

```python def run(self, show_credits: bool = False, show_endpoint: bool = False) -> None: diff --git a/python/classes/universal_api/clients/multi_llm/AsyncMultiUnify.mdx b/python/classes/universal_api/clients/multi_llm/AsyncMultiUnify.mdx index be55c535d..17b026de8 100644 --- a/python/classes/universal_api/clients/multi_llm/AsyncMultiUnify.mdx +++ b/python/classes/universal_api/clients/multi_llm/AsyncMultiUnify.mdx @@ -6,13 +6,13 @@ title: 'AsyncMultiUnify' class AsyncMultiUnify ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L906)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L906)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L32)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L32)

```python def __init__( @@ -109,7 +109,7 @@ Initialize the Multi LLM Unify client. ### cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L438)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L438)

```python def cache(self) -> bool: @@ -125,7 +125,7 @@ The default cache bool. ### clients -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L446)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L446)

```python def clients(self) -> Dict[str, _UniClient]: @@ -142,7 +142,7 @@ The dictionary of clients. ### default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L478)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L478)

```python def default_prompt(self) -> Prompt: @@ -158,7 +158,7 @@ The default prompt. ### drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L368)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L368)

```python def drop_params(self) -> Optional[bool]: @@ -174,7 +174,7 @@ The default drop_params bool. ### endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L436)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L436)

```python def endpoints(self) -> Tuple[str, ...]: @@ -190,7 +190,7 @@ The tuple of endpoints. ### extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L468)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L468)

```python def extra_body(self) -> Optional[Mapping[str, str]]: @@ -206,7 +206,7 @@ The default extra body. ### extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L448)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L448)

```python def extra_headers(self) -> Optional[Headers]: @@ -222,7 +222,7 @@ The default extra headers. ### extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L458)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L458)

```python def extra_query(self) -> Optional[Query]: @@ -238,7 +238,7 @@ The default extra query. ### frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L178)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L178)

```python def frequency_penalty(self) -> Optional[float]: @@ -254,7 +254,7 @@ The default frequency penalty. ### input\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L417)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L417)

```python def input_cost(self) -> Dict[str, float]: @@ -266,7 +266,7 @@ def input_cost(self) -> Dict[str, float]: ### itl -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L429)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L429)

```python def itl(self) -> Dict[str, float]: @@ -278,7 +278,7 @@ def itl(self) -> Dict[str, float]: ### log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L388)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L388)

```python def log_query_body(self) -> Optional[bool]: @@ -294,7 +294,7 @@ The default log query body bool. ### log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L398)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L398)

```python def log_response_body(self) -> Optional[bool]: @@ -310,7 +310,7 @@ The default log response body bool. ### logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L188)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L188)

```python def logit_bias(self) -> Optional[Dict[str, int]]: @@ -326,7 +326,7 @@ The default logit bias. ### logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L198)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L198)

```python def logprobs(self) -> Optional[bool]: @@ -342,7 +342,7 @@ The default logprobs. ### max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L218)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L218)

```python def max_completion_tokens(self) -> Optional[int]: @@ -358,7 +358,7 @@ The default max tokens. ### messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L161)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L161)

```python def messages( @@ -381,7 +381,7 @@ The default messages. ### n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L228)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L228)

```python def n(self) -> Optional[int]: @@ -397,7 +397,7 @@ The default n value. ### output\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L421)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L421)

```python def output_cost(self) -> Dict[str, float]: @@ -409,7 +409,7 @@ def output_cost(self) -> Dict[str, float]: ### parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L338)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L338)

```python def parallel_tool_calls(self) -> Optional[bool]: @@ -425,7 +425,7 @@ The default parallel tool calls bool. ### presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L238)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L238)

```python def presence_penalty(self) -> Optional[float]: @@ -441,7 +441,7 @@ The default presence penalty. ### region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L378)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L378)

```python def region(self) -> Optional[str]: @@ -457,7 +457,7 @@ The default region. ### response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L248)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L248)

```python def response_format(self) -> Optional[ResponseFormat]: @@ -473,7 +473,7 @@ The default response format. ### return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L418)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L418)

```python def return_full_completion(self) -> bool: @@ -489,7 +489,7 @@ The default return full completion bool. ### seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L258)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L258)

```python def seed(self) -> Optional[int]: @@ -505,7 +505,7 @@ The default seed value. ### stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L408)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L408)

```python def stateful(self) -> bool: @@ -521,7 +521,7 @@ The default stateful bool. ### stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L268)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L268)

```python def stop(self) -> Union[Optional[str], List[str]]: @@ -537,7 +537,7 @@ The default stop value. ### stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L278)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L278)

```python def stream(self) -> Optional[bool]: @@ -553,7 +553,7 @@ The default stream bool. ### stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L288)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L288)

```python def stream_options(self) -> Optional[ChatCompletionStreamOptionsParam]: @@ -569,7 +569,7 @@ The default stream options. ### system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L151)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L151)

```python def system_message(self) -> Optional[str]: @@ -585,7 +585,7 @@ The default system message. ### tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L358)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L358)

```python def tags(self) -> Optional[List[str]]: @@ -601,7 +601,7 @@ The default tags. ### temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L298)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L298)

```python def temperature(self) -> Optional[float]: @@ -617,7 +617,7 @@ The default temperature. ### tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L328)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L328)

```python def tool_choice(self) -> Optional[ChatCompletionToolChoiceOptionParam]: @@ -633,7 +633,7 @@ The default tool choice. ### tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L318)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L318)

```python def tools(self) -> Optional[Iterable[ChatCompletionToolParam]]: @@ -649,7 +649,7 @@ The default tools. ### top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L208)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L208)

```python def top_logprobs(self) -> Optional[int]: @@ -665,7 +665,7 @@ The default top logprobs. ### top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L308)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L308)

```python def top_p(self) -> Optional[float]: @@ -681,7 +681,7 @@ The default top p value. ### traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L428)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L428)

```python def traced(self) -> bool: @@ -697,7 +697,7 @@ The default traced bool. ### ttft -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L425)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L425)

```python def ttft(self) -> Dict[str, float]: @@ -709,7 +709,7 @@ def ttft(self) -> Dict[str, float]: ### use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L348)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L348)

```python def use_custom_keys(self) -> bool: @@ -727,7 +727,7 @@ The default use custom keys bool. ### set\_cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L910)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L910)

```python def set_cache(self, value: bool) -> Self: @@ -749,7 +749,7 @@ This client, useful for chaining inplace calls. ### set\_default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L962)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L962)

```python def set_default_prompt(self, value: Prompt) -> Self: @@ -765,7 +765,7 @@ This client, useful for chaining inplace calls. ### set\_drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L818)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L818)

```python def set_drop_params(self, value: bool) -> Self: @@ -787,7 +787,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L949)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L949)

```python def set_extra_body(self, value: Body) -> Self: @@ -809,7 +809,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L923)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L923)

```python def set_extra_headers(self, value: Headers) -> Self: @@ -831,7 +831,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L936)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L936)

```python def set_extra_query(self, value: Query) -> Self: @@ -853,7 +853,7 @@ This client, useful for chaining inplace calls. ### set\_frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L571)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L571)

```python def set_frequency_penalty(self, value: float) -> Self: @@ -875,7 +875,7 @@ This client, useful for chaining inplace calls. ### set\_log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L844)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L844)

```python def set_log_query_body(self, value: bool) -> Self: @@ -897,7 +897,7 @@ This client, useful for chaining inplace calls. ### set\_log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L857)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L857)

```python def set_log_response_body(self, value: bool) -> Self: @@ -919,7 +919,7 @@ This client, useful for chaining inplace calls. ### set\_logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L584)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L584)

```python def set_logit_bias(self, value: Dict[str, int]) -> Self: @@ -941,7 +941,7 @@ This client, useful for chaining inplace calls. ### set\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L597)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L597)

```python def set_logprobs(self, value: bool) -> Self: @@ -963,7 +963,7 @@ This client, useful for chaining inplace calls. ### set\_max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L623)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L623)

```python def set_max_completion_tokens(self, value: int) -> Self: @@ -985,7 +985,7 @@ This client, useful for chaining inplace calls. ### set\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L529)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L529)

```python def set_messages( @@ -1013,7 +1013,7 @@ This client, useful for chaining inplace calls. ### set\_n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L636)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L636)

```python def set_n(self, value: int) -> Self: @@ -1035,7 +1035,7 @@ This client, useful for chaining inplace calls. ### set\_parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L779)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L779)

```python def set_parallel_tool_calls(self, value: bool) -> Self: @@ -1057,7 +1057,7 @@ This client, useful for chaining inplace calls. ### set\_presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L649)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L649)

```python def set_presence_penalty(self, value: float) -> Self: @@ -1079,7 +1079,7 @@ This client, useful for chaining inplace calls. ### set\_region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L831)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L831)

```python def set_region(self, value: str) -> Self: @@ -1101,7 +1101,7 @@ This client, useful for chaining inplace calls. ### set\_response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L662)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L662)

```python def set_response_format(self, value: ResponseFormat) -> Self: @@ -1123,7 +1123,7 @@ This client, useful for chaining inplace calls. ### set\_return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L883)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L883)

```python def set_return_full_completion(self, value: bool) -> Self: @@ -1145,7 +1145,7 @@ This client, useful for chaining inplace calls. ### set\_seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L675)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L675)

```python def set_seed(self, value: Optional[int]) -> Self: @@ -1167,7 +1167,7 @@ This client, useful for chaining inplace calls. ### set\_stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L870)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L870)

```python def set_stateful(self, value: bool) -> Self: @@ -1189,7 +1189,7 @@ This client, useful for chaining inplace calls. ### set\_stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L688)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L688)

```python def set_stop(self, value: Union[str, List[str]]) -> Self: @@ -1211,7 +1211,7 @@ This client, useful for chaining inplace calls. ### set\_stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L701)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L701)

```python def set_stream(self, value: bool) -> Self: @@ -1233,7 +1233,7 @@ This client, useful for chaining inplace calls. ### set\_stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L714)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L714)

```python def set_stream_options(self, value: ChatCompletionStreamOptionsParam) -> Self: @@ -1255,7 +1255,7 @@ This client, useful for chaining inplace calls. ### set\_system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L497)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L497)

```python def set_system_message(self, value: str) -> Self: @@ -1277,7 +1277,7 @@ This client, useful for chaining inplace calls. ### set\_tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L805)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L805)

```python def set_tags(self, value: List[str]) -> Self: @@ -1299,7 +1299,7 @@ This client, useful for chaining inplace calls. ### set\_temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L727)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L727)

```python def set_temperature(self, value: float) -> Self: @@ -1321,7 +1321,7 @@ This client, useful for chaining inplace calls. ### set\_tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L766)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L766)

```python def set_tool_choice(self, value: ChatCompletionToolChoiceOptionParam) -> Self: @@ -1343,7 +1343,7 @@ This client, useful for chaining inplace calls. ### set\_tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L753)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L753)

```python def set_tools(self, value: Iterable[ChatCompletionToolParam]) -> Self: @@ -1365,7 +1365,7 @@ This client, useful for chaining inplace calls. ### set\_top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L610)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L610)

```python def set_top_logprobs(self, value: int) -> Self: @@ -1387,7 +1387,7 @@ This client, useful for chaining inplace calls. ### set\_top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L740)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L740)

```python def set_top_p(self, value: float) -> Self: @@ -1409,7 +1409,7 @@ This client, useful for chaining inplace calls. ### set\_traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L897)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L897)

```python def set_traced(self, value: bool) -> Self: @@ -1431,7 +1431,7 @@ This client, useful for chaining inplace calls. ### set\_use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L792)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L792)

```python def set_use_custom_keys(self, value: bool) -> Self: @@ -1455,7 +1455,7 @@ This client, useful for chaining inplace calls. ### add\_endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L306)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L306)

```python def add_endpoints( @@ -1482,7 +1482,7 @@ This client, useful for chaining inplace calls. ### append\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L550)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L550)

```python def append_messages( @@ -1510,7 +1510,7 @@ This client, useful for chaining inplace calls. ### generate -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L469)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L469)

```python def generate( @@ -1617,7 +1617,7 @@ If stream is False, returns a single string response. ### get\_credit\_balance -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L384)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L384)

```python def get_credit_balance(self) -> Union[float, None]: @@ -1638,7 +1638,7 @@ ValueError: If there was an error parsing the JSON response. ### remove\_endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L344)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L344)

```python def remove_endpoints( @@ -1666,7 +1666,7 @@ This client, useful for chaining inplace calls. ### to\_sync\_client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L988)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L988)

```python def to_sync_client(self): @@ -1686,7 +1686,7 @@ instance. ### \_\_repr\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L460)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L460)

```python def __repr__(self): @@ -1698,7 +1698,7 @@ def __repr__(self): ### \_\_str\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L463)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L463)

```python def __str__(self): diff --git a/python/classes/universal_api/clients/multi_llm/MultiUnify.mdx b/python/classes/universal_api/clients/multi_llm/MultiUnify.mdx index 968656a9d..2939c9eff 100644 --- a/python/classes/universal_api/clients/multi_llm/MultiUnify.mdx +++ b/python/classes/universal_api/clients/multi_llm/MultiUnify.mdx @@ -6,13 +6,13 @@ title: 'MultiUnify' class MultiUnify ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L746)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L746)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L32)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L32)

```python def __init__( @@ -109,7 +109,7 @@ Initialize the Multi LLM Unify client. ### cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L438)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L438)

```python def cache(self) -> bool: @@ -125,7 +125,7 @@ The default cache bool. ### clients -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L446)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L446)

```python def clients(self) -> Dict[str, _UniClient]: @@ -142,7 +142,7 @@ The dictionary of clients. ### default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L478)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L478)

```python def default_prompt(self) -> Prompt: @@ -158,7 +158,7 @@ The default prompt. ### drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L368)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L368)

```python def drop_params(self) -> Optional[bool]: @@ -174,7 +174,7 @@ The default drop_params bool. ### endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L436)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L436)

```python def endpoints(self) -> Tuple[str, ...]: @@ -190,7 +190,7 @@ The tuple of endpoints. ### extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L468)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L468)

```python def extra_body(self) -> Optional[Mapping[str, str]]: @@ -206,7 +206,7 @@ The default extra body. ### extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L448)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L448)

```python def extra_headers(self) -> Optional[Headers]: @@ -222,7 +222,7 @@ The default extra headers. ### extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L458)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L458)

```python def extra_query(self) -> Optional[Query]: @@ -238,7 +238,7 @@ The default extra query. ### frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L178)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L178)

```python def frequency_penalty(self) -> Optional[float]: @@ -254,7 +254,7 @@ The default frequency penalty. ### input\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L417)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L417)

```python def input_cost(self) -> Dict[str, float]: @@ -266,7 +266,7 @@ def input_cost(self) -> Dict[str, float]: ### itl -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L429)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L429)

```python def itl(self) -> Dict[str, float]: @@ -278,7 +278,7 @@ def itl(self) -> Dict[str, float]: ### log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L388)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L388)

```python def log_query_body(self) -> Optional[bool]: @@ -294,7 +294,7 @@ The default log query body bool. ### log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L398)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L398)

```python def log_response_body(self) -> Optional[bool]: @@ -310,7 +310,7 @@ The default log response body bool. ### logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L188)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L188)

```python def logit_bias(self) -> Optional[Dict[str, int]]: @@ -326,7 +326,7 @@ The default logit bias. ### logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L198)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L198)

```python def logprobs(self) -> Optional[bool]: @@ -342,7 +342,7 @@ The default logprobs. ### max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L218)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L218)

```python def max_completion_tokens(self) -> Optional[int]: @@ -358,7 +358,7 @@ The default max tokens. ### messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L161)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L161)

```python def messages( @@ -381,7 +381,7 @@ The default messages. ### n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L228)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L228)

```python def n(self) -> Optional[int]: @@ -397,7 +397,7 @@ The default n value. ### output\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L421)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L421)

```python def output_cost(self) -> Dict[str, float]: @@ -409,7 +409,7 @@ def output_cost(self) -> Dict[str, float]: ### parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L338)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L338)

```python def parallel_tool_calls(self) -> Optional[bool]: @@ -425,7 +425,7 @@ The default parallel tool calls bool. ### presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L238)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L238)

```python def presence_penalty(self) -> Optional[float]: @@ -441,7 +441,7 @@ The default presence penalty. ### region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L378)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L378)

```python def region(self) -> Optional[str]: @@ -457,7 +457,7 @@ The default region. ### response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L248)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L248)

```python def response_format(self) -> Optional[ResponseFormat]: @@ -473,7 +473,7 @@ The default response format. ### return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L418)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L418)

```python def return_full_completion(self) -> bool: @@ -489,7 +489,7 @@ The default return full completion bool. ### seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L258)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L258)

```python def seed(self) -> Optional[int]: @@ -505,7 +505,7 @@ The default seed value. ### stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L408)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L408)

```python def stateful(self) -> bool: @@ -521,7 +521,7 @@ The default stateful bool. ### stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L268)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L268)

```python def stop(self) -> Union[Optional[str], List[str]]: @@ -537,7 +537,7 @@ The default stop value. ### stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L278)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L278)

```python def stream(self) -> Optional[bool]: @@ -553,7 +553,7 @@ The default stream bool. ### stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L288)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L288)

```python def stream_options(self) -> Optional[ChatCompletionStreamOptionsParam]: @@ -569,7 +569,7 @@ The default stream options. ### system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L151)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L151)

```python def system_message(self) -> Optional[str]: @@ -585,7 +585,7 @@ The default system message. ### tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L358)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L358)

```python def tags(self) -> Optional[List[str]]: @@ -601,7 +601,7 @@ The default tags. ### temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L298)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L298)

```python def temperature(self) -> Optional[float]: @@ -617,7 +617,7 @@ The default temperature. ### tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L328)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L328)

```python def tool_choice(self) -> Optional[ChatCompletionToolChoiceOptionParam]: @@ -633,7 +633,7 @@ The default tool choice. ### tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L318)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L318)

```python def tools(self) -> Optional[Iterable[ChatCompletionToolParam]]: @@ -649,7 +649,7 @@ The default tools. ### top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L208)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L208)

```python def top_logprobs(self) -> Optional[int]: @@ -665,7 +665,7 @@ The default top logprobs. ### top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L308)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L308)

```python def top_p(self) -> Optional[float]: @@ -681,7 +681,7 @@ The default top p value. ### traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L428)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L428)

```python def traced(self) -> bool: @@ -697,7 +697,7 @@ The default traced bool. ### ttft -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L425)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L425)

```python def ttft(self) -> Dict[str, float]: @@ -709,7 +709,7 @@ def ttft(self) -> Dict[str, float]: ### use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L348)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L348)

```python def use_custom_keys(self) -> bool: @@ -727,7 +727,7 @@ The default use custom keys bool. ### set\_cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L910)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L910)

```python def set_cache(self, value: bool) -> Self: @@ -749,7 +749,7 @@ This client, useful for chaining inplace calls. ### set\_default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L962)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L962)

```python def set_default_prompt(self, value: Prompt) -> Self: @@ -765,7 +765,7 @@ This client, useful for chaining inplace calls. ### set\_drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L818)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L818)

```python def set_drop_params(self, value: bool) -> Self: @@ -787,7 +787,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L949)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L949)

```python def set_extra_body(self, value: Body) -> Self: @@ -809,7 +809,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L923)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L923)

```python def set_extra_headers(self, value: Headers) -> Self: @@ -831,7 +831,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L936)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L936)

```python def set_extra_query(self, value: Query) -> Self: @@ -853,7 +853,7 @@ This client, useful for chaining inplace calls. ### set\_frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L571)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L571)

```python def set_frequency_penalty(self, value: float) -> Self: @@ -875,7 +875,7 @@ This client, useful for chaining inplace calls. ### set\_log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L844)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L844)

```python def set_log_query_body(self, value: bool) -> Self: @@ -897,7 +897,7 @@ This client, useful for chaining inplace calls. ### set\_log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L857)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L857)

```python def set_log_response_body(self, value: bool) -> Self: @@ -919,7 +919,7 @@ This client, useful for chaining inplace calls. ### set\_logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L584)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L584)

```python def set_logit_bias(self, value: Dict[str, int]) -> Self: @@ -941,7 +941,7 @@ This client, useful for chaining inplace calls. ### set\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L597)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L597)

```python def set_logprobs(self, value: bool) -> Self: @@ -963,7 +963,7 @@ This client, useful for chaining inplace calls. ### set\_max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L623)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L623)

```python def set_max_completion_tokens(self, value: int) -> Self: @@ -985,7 +985,7 @@ This client, useful for chaining inplace calls. ### set\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L529)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L529)

```python def set_messages( @@ -1013,7 +1013,7 @@ This client, useful for chaining inplace calls. ### set\_n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L636)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L636)

```python def set_n(self, value: int) -> Self: @@ -1035,7 +1035,7 @@ This client, useful for chaining inplace calls. ### set\_parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L779)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L779)

```python def set_parallel_tool_calls(self, value: bool) -> Self: @@ -1057,7 +1057,7 @@ This client, useful for chaining inplace calls. ### set\_presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L649)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L649)

```python def set_presence_penalty(self, value: float) -> Self: @@ -1079,7 +1079,7 @@ This client, useful for chaining inplace calls. ### set\_region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L831)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L831)

```python def set_region(self, value: str) -> Self: @@ -1101,7 +1101,7 @@ This client, useful for chaining inplace calls. ### set\_response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L662)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L662)

```python def set_response_format(self, value: ResponseFormat) -> Self: @@ -1123,7 +1123,7 @@ This client, useful for chaining inplace calls. ### set\_return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L883)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L883)

```python def set_return_full_completion(self, value: bool) -> Self: @@ -1145,7 +1145,7 @@ This client, useful for chaining inplace calls. ### set\_seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L675)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L675)

```python def set_seed(self, value: Optional[int]) -> Self: @@ -1167,7 +1167,7 @@ This client, useful for chaining inplace calls. ### set\_stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L870)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L870)

```python def set_stateful(self, value: bool) -> Self: @@ -1189,7 +1189,7 @@ This client, useful for chaining inplace calls. ### set\_stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L688)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L688)

```python def set_stop(self, value: Union[str, List[str]]) -> Self: @@ -1211,7 +1211,7 @@ This client, useful for chaining inplace calls. ### set\_stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L701)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L701)

```python def set_stream(self, value: bool) -> Self: @@ -1233,7 +1233,7 @@ This client, useful for chaining inplace calls. ### set\_stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L714)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L714)

```python def set_stream_options(self, value: ChatCompletionStreamOptionsParam) -> Self: @@ -1255,7 +1255,7 @@ This client, useful for chaining inplace calls. ### set\_system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L497)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L497)

```python def set_system_message(self, value: str) -> Self: @@ -1277,7 +1277,7 @@ This client, useful for chaining inplace calls. ### set\_tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L805)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L805)

```python def set_tags(self, value: List[str]) -> Self: @@ -1299,7 +1299,7 @@ This client, useful for chaining inplace calls. ### set\_temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L727)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L727)

```python def set_temperature(self, value: float) -> Self: @@ -1321,7 +1321,7 @@ This client, useful for chaining inplace calls. ### set\_tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L766)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L766)

```python def set_tool_choice(self, value: ChatCompletionToolChoiceOptionParam) -> Self: @@ -1343,7 +1343,7 @@ This client, useful for chaining inplace calls. ### set\_tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L753)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L753)

```python def set_tools(self, value: Iterable[ChatCompletionToolParam]) -> Self: @@ -1365,7 +1365,7 @@ This client, useful for chaining inplace calls. ### set\_top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L610)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L610)

```python def set_top_logprobs(self, value: int) -> Self: @@ -1387,7 +1387,7 @@ This client, useful for chaining inplace calls. ### set\_top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L740)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L740)

```python def set_top_p(self, value: float) -> Self: @@ -1409,7 +1409,7 @@ This client, useful for chaining inplace calls. ### set\_traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L897)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L897)

```python def set_traced(self, value: bool) -> Self: @@ -1431,7 +1431,7 @@ This client, useful for chaining inplace calls. ### set\_use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L792)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L792)

```python def set_use_custom_keys(self, value: bool) -> Self: @@ -1455,7 +1455,7 @@ This client, useful for chaining inplace calls. ### add\_endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L306)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L306)

```python def add_endpoints( @@ -1482,7 +1482,7 @@ This client, useful for chaining inplace calls. ### append\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L550)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L550)

```python def append_messages( @@ -1510,7 +1510,7 @@ This client, useful for chaining inplace calls. ### generate -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L469)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L469)

```python def generate( @@ -1617,7 +1617,7 @@ If stream is False, returns a single string response. ### get\_credit\_balance -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L384)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L384)

```python def get_credit_balance(self) -> Union[float, None]: @@ -1638,7 +1638,7 @@ ValueError: If there was an error parsing the JSON response. ### remove\_endpoints -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L344)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L344)

```python def remove_endpoints( @@ -1666,7 +1666,7 @@ This client, useful for chaining inplace calls. ### to\_async\_client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L894)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L894)

```python def to_async_client(self): @@ -1686,7 +1686,7 @@ instance. ### \_\_repr\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L460)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L460)

```python def __repr__(self): @@ -1698,7 +1698,7 @@ def __repr__(self): ### \_\_str\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/multi_llm.py#L463)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/multi_llm.py#L463)

```python def __str__(self): diff --git a/python/classes/universal_api/clients/uni_llm/AsyncUnify.mdx b/python/classes/universal_api/clients/uni_llm/AsyncUnify.mdx index 8d818aec2..58991e71f 100644 --- a/python/classes/universal_api/clients/uni_llm/AsyncUnify.mdx +++ b/python/classes/universal_api/clients/uni_llm/AsyncUnify.mdx @@ -6,14 +6,14 @@ title: 'AsyncUnify' class AsyncUnify ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L983)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L983)

Class for interacting with the Unify chat completions endpoint in a synchronous manner. ### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L36)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L36)

```python def __init__( @@ -114,7 +114,7 @@ Initialize the Uni LLM Unify client. ### cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L438)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L438)

```python def cache(self) -> bool: @@ -130,7 +130,7 @@ The default cache bool. ### default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L478)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L478)

```python def default_prompt(self) -> Prompt: @@ -146,7 +146,7 @@ The default prompt. ### drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L368)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L368)

```python def drop_params(self) -> Optional[bool]: @@ -162,7 +162,7 @@ The default drop_params bool. ### endpoint -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L311)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L311)

```python def endpoint(self) -> str: @@ -178,7 +178,7 @@ The endpoint name. ### extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L468)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L468)

```python def extra_body(self) -> Optional[Mapping[str, str]]: @@ -194,7 +194,7 @@ The default extra body. ### extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L448)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L448)

```python def extra_headers(self) -> Optional[Headers]: @@ -210,7 +210,7 @@ The default extra headers. ### extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L458)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L458)

```python def extra_query(self) -> Optional[Query]: @@ -226,7 +226,7 @@ The default extra query. ### frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L178)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L178)

```python def frequency_penalty(self) -> Optional[float]: @@ -242,7 +242,7 @@ The default frequency penalty. ### input\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L292)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L292)

```python def input_cost(self) -> float: @@ -254,7 +254,7 @@ def input_cost(self) -> float: ### itl -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L304)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L304)

```python def itl(self) -> float: @@ -266,7 +266,7 @@ def itl(self) -> float: ### log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L388)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L388)

```python def log_query_body(self) -> Optional[bool]: @@ -282,7 +282,7 @@ The default log query body bool. ### log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L398)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L398)

```python def log_response_body(self) -> Optional[bool]: @@ -298,7 +298,7 @@ The default log response body bool. ### logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L188)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L188)

```python def logit_bias(self) -> Optional[Dict[str, int]]: @@ -314,7 +314,7 @@ The default logit bias. ### logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L198)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L198)

```python def logprobs(self) -> Optional[bool]: @@ -330,7 +330,7 @@ The default logprobs. ### max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L218)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L218)

```python def max_completion_tokens(self) -> Optional[int]: @@ -346,7 +346,7 @@ The default max tokens. ### messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L161)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L161)

```python def messages( @@ -369,7 +369,7 @@ The default messages. ### model -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L321)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L321)

```python def model(self) -> str: @@ -385,7 +385,7 @@ The model name. ### n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L228)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L228)

```python def n(self) -> Optional[int]: @@ -401,7 +401,7 @@ The default n value. ### output\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L296)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L296)

```python def output_cost(self) -> float: @@ -413,7 +413,7 @@ def output_cost(self) -> float: ### parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L338)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L338)

```python def parallel_tool_calls(self) -> Optional[bool]: @@ -429,7 +429,7 @@ The default parallel tool calls bool. ### presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L238)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L238)

```python def presence_penalty(self) -> Optional[float]: @@ -445,7 +445,7 @@ The default presence penalty. ### provider -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L331)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L331)

```python def provider(self) -> str: @@ -461,7 +461,7 @@ The provider name. ### region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L378)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L378)

```python def region(self) -> Optional[str]: @@ -477,7 +477,7 @@ The default region. ### response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L248)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L248)

```python def response_format(self) -> Optional[ResponseFormat]: @@ -493,7 +493,7 @@ The default response format. ### return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L418)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L418)

```python def return_full_completion(self) -> bool: @@ -509,7 +509,7 @@ The default return full completion bool. ### seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L258)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L258)

```python def seed(self) -> Optional[int]: @@ -525,7 +525,7 @@ The default seed value. ### stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L408)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L408)

```python def stateful(self) -> bool: @@ -541,7 +541,7 @@ The default stateful bool. ### stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L268)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L268)

```python def stop(self) -> Union[Optional[str], List[str]]: @@ -557,7 +557,7 @@ The default stop value. ### stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L278)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L278)

```python def stream(self) -> Optional[bool]: @@ -573,7 +573,7 @@ The default stream bool. ### stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L288)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L288)

```python def stream_options(self) -> Optional[ChatCompletionStreamOptionsParam]: @@ -589,7 +589,7 @@ The default stream options. ### system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L151)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L151)

```python def system_message(self) -> Optional[str]: @@ -605,7 +605,7 @@ The default system message. ### tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L358)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L358)

```python def tags(self) -> Optional[List[str]]: @@ -621,7 +621,7 @@ The default tags. ### temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L298)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L298)

```python def temperature(self) -> Optional[float]: @@ -637,7 +637,7 @@ The default temperature. ### tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L328)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L328)

```python def tool_choice(self) -> Optional[ChatCompletionToolChoiceOptionParam]: @@ -653,7 +653,7 @@ The default tool choice. ### tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L318)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L318)

```python def tools(self) -> Optional[Iterable[ChatCompletionToolParam]]: @@ -669,7 +669,7 @@ The default tools. ### top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L208)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L208)

```python def top_logprobs(self) -> Optional[int]: @@ -685,7 +685,7 @@ The default top logprobs. ### top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L308)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L308)

```python def top_p(self) -> Optional[float]: @@ -701,7 +701,7 @@ The default top p value. ### traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L428)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L428)

```python def traced(self) -> bool: @@ -717,7 +717,7 @@ The default traced bool. ### ttft -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L300)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L300)

```python def ttft(self) -> float: @@ -729,7 +729,7 @@ def ttft(self) -> float: ### use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L348)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L348)

```python def use_custom_keys(self) -> bool: @@ -747,7 +747,7 @@ The default use custom keys bool. ### set\_cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L910)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L910)

```python def set_cache(self, value: bool) -> Self: @@ -769,7 +769,7 @@ This client, useful for chaining inplace calls. ### set\_default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L962)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L962)

```python def set_default_prompt(self, value: Prompt) -> Self: @@ -785,7 +785,7 @@ This client, useful for chaining inplace calls. ### set\_drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L818)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L818)

```python def set_drop_params(self, value: bool) -> Self: @@ -807,7 +807,7 @@ This client, useful for chaining inplace calls. ### set\_endpoint -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L344)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L344)

```python def set_endpoint(self, value: str) -> Self: @@ -829,7 +829,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L949)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L949)

```python def set_extra_body(self, value: Body) -> Self: @@ -851,7 +851,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L923)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L923)

```python def set_extra_headers(self, value: Headers) -> Self: @@ -873,7 +873,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L936)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L936)

```python def set_extra_query(self, value: Query) -> Self: @@ -895,7 +895,7 @@ This client, useful for chaining inplace calls. ### set\_frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L571)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L571)

```python def set_frequency_penalty(self, value: float) -> Self: @@ -917,7 +917,7 @@ This client, useful for chaining inplace calls. ### set\_log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L844)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L844)

```python def set_log_query_body(self, value: bool) -> Self: @@ -939,7 +939,7 @@ This client, useful for chaining inplace calls. ### set\_log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L857)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L857)

```python def set_log_response_body(self, value: bool) -> Self: @@ -961,7 +961,7 @@ This client, useful for chaining inplace calls. ### set\_logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L584)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L584)

```python def set_logit_bias(self, value: Dict[str, int]) -> Self: @@ -983,7 +983,7 @@ This client, useful for chaining inplace calls. ### set\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L597)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L597)

```python def set_logprobs(self, value: bool) -> Self: @@ -1005,7 +1005,7 @@ This client, useful for chaining inplace calls. ### set\_max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L623)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L623)

```python def set_max_completion_tokens(self, value: int) -> Self: @@ -1027,7 +1027,7 @@ This client, useful for chaining inplace calls. ### set\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L529)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L529)

```python def set_messages( @@ -1055,7 +1055,7 @@ This client, useful for chaining inplace calls. ### set\_model -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L364)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L364)

```python def set_model(self, value: str) -> Self: @@ -1077,7 +1077,7 @@ This client, useful for chaining inplace calls. ### set\_n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L636)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L636)

```python def set_n(self, value: int) -> Self: @@ -1099,7 +1099,7 @@ This client, useful for chaining inplace calls. ### set\_parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L779)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L779)

```python def set_parallel_tool_calls(self, value: bool) -> Self: @@ -1121,7 +1121,7 @@ This client, useful for chaining inplace calls. ### set\_presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L649)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L649)

```python def set_presence_penalty(self, value: float) -> Self: @@ -1143,7 +1143,7 @@ This client, useful for chaining inplace calls. ### set\_provider -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L384)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L384)

```python def set_provider(self, value: str) -> Self: @@ -1165,7 +1165,7 @@ This client, useful for chaining inplace calls. ### set\_region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L831)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L831)

```python def set_region(self, value: str) -> Self: @@ -1187,7 +1187,7 @@ This client, useful for chaining inplace calls. ### set\_response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L662)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L662)

```python def set_response_format(self, value: ResponseFormat) -> Self: @@ -1209,7 +1209,7 @@ This client, useful for chaining inplace calls. ### set\_return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L883)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L883)

```python def set_return_full_completion(self, value: bool) -> Self: @@ -1231,7 +1231,7 @@ This client, useful for chaining inplace calls. ### set\_seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L675)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L675)

```python def set_seed(self, value: Optional[int]) -> Self: @@ -1253,7 +1253,7 @@ This client, useful for chaining inplace calls. ### set\_stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L870)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L870)

```python def set_stateful(self, value: bool) -> Self: @@ -1275,7 +1275,7 @@ This client, useful for chaining inplace calls. ### set\_stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L688)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L688)

```python def set_stop(self, value: Union[str, List[str]]) -> Self: @@ -1297,7 +1297,7 @@ This client, useful for chaining inplace calls. ### set\_stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L701)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L701)

```python def set_stream(self, value: bool) -> Self: @@ -1319,7 +1319,7 @@ This client, useful for chaining inplace calls. ### set\_stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L714)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L714)

```python def set_stream_options(self, value: ChatCompletionStreamOptionsParam) -> Self: @@ -1341,7 +1341,7 @@ This client, useful for chaining inplace calls. ### set\_system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L497)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L497)

```python def set_system_message(self, value: str) -> Self: @@ -1363,7 +1363,7 @@ This client, useful for chaining inplace calls. ### set\_tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L805)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L805)

```python def set_tags(self, value: List[str]) -> Self: @@ -1385,7 +1385,7 @@ This client, useful for chaining inplace calls. ### set\_temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L727)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L727)

```python def set_temperature(self, value: float) -> Self: @@ -1407,7 +1407,7 @@ This client, useful for chaining inplace calls. ### set\_tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L766)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L766)

```python def set_tool_choice(self, value: ChatCompletionToolChoiceOptionParam) -> Self: @@ -1429,7 +1429,7 @@ This client, useful for chaining inplace calls. ### set\_tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L753)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L753)

```python def set_tools(self, value: Iterable[ChatCompletionToolParam]) -> Self: @@ -1451,7 +1451,7 @@ This client, useful for chaining inplace calls. ### set\_top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L610)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L610)

```python def set_top_logprobs(self, value: int) -> Self: @@ -1473,7 +1473,7 @@ This client, useful for chaining inplace calls. ### set\_top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L740)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L740)

```python def set_top_p(self, value: float) -> Self: @@ -1495,7 +1495,7 @@ This client, useful for chaining inplace calls. ### set\_traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L897)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L897)

```python def set_traced(self, value: bool) -> Self: @@ -1517,7 +1517,7 @@ This client, useful for chaining inplace calls. ### set\_use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L792)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L792)

```python def set_use_custom_keys(self, value: bool) -> Self: @@ -1541,7 +1541,7 @@ This client, useful for chaining inplace calls. ### append\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L550)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L550)

```python def append_messages( @@ -1569,7 +1569,7 @@ This client, useful for chaining inplace calls. ### generate -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L457)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L457)

```python def generate( @@ -1674,7 +1674,7 @@ If stream is False, returns a single string response. ### get\_credit\_balance -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L980)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L980)

```python def get_credit_balance(self) -> Union[float, None]: @@ -1695,7 +1695,7 @@ ValueError: If there was an error parsing the JSON response. ### to\_sync\_client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L1224)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L1224)

```python def to_sync_client(self): @@ -1715,7 +1715,7 @@ instance. ### \_\_repr\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L441)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L441)

```python def __repr__(self): @@ -1727,7 +1727,7 @@ def __repr__(self): ### \_\_str\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L444)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L444)

```python def __str__(self): diff --git a/python/classes/universal_api/clients/uni_llm/Unify.mdx b/python/classes/universal_api/clients/uni_llm/Unify.mdx index 1887c6c0f..a3433fda7 100644 --- a/python/classes/universal_api/clients/uni_llm/Unify.mdx +++ b/python/classes/universal_api/clients/uni_llm/Unify.mdx @@ -6,14 +6,14 @@ title: 'Unify' class Unify ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L729)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L729)

Class for interacting with the Unify chat completions endpoint in a synchronous manner. ### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L36)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L36)

```python def __init__( @@ -114,7 +114,7 @@ Initialize the Uni LLM Unify client. ### cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L438)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L438)

```python def cache(self) -> bool: @@ -130,7 +130,7 @@ The default cache bool. ### default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L478)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L478)

```python def default_prompt(self) -> Prompt: @@ -146,7 +146,7 @@ The default prompt. ### drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L368)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L368)

```python def drop_params(self) -> Optional[bool]: @@ -162,7 +162,7 @@ The default drop_params bool. ### endpoint -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L311)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L311)

```python def endpoint(self) -> str: @@ -178,7 +178,7 @@ The endpoint name. ### extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L468)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L468)

```python def extra_body(self) -> Optional[Mapping[str, str]]: @@ -194,7 +194,7 @@ The default extra body. ### extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L448)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L448)

```python def extra_headers(self) -> Optional[Headers]: @@ -210,7 +210,7 @@ The default extra headers. ### extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L458)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L458)

```python def extra_query(self) -> Optional[Query]: @@ -226,7 +226,7 @@ The default extra query. ### frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L178)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L178)

```python def frequency_penalty(self) -> Optional[float]: @@ -242,7 +242,7 @@ The default frequency penalty. ### input\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L292)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L292)

```python def input_cost(self) -> float: @@ -254,7 +254,7 @@ def input_cost(self) -> float: ### itl -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L304)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L304)

```python def itl(self) -> float: @@ -266,7 +266,7 @@ def itl(self) -> float: ### log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L388)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L388)

```python def log_query_body(self) -> Optional[bool]: @@ -282,7 +282,7 @@ The default log query body bool. ### log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L398)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L398)

```python def log_response_body(self) -> Optional[bool]: @@ -298,7 +298,7 @@ The default log response body bool. ### logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L188)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L188)

```python def logit_bias(self) -> Optional[Dict[str, int]]: @@ -314,7 +314,7 @@ The default logit bias. ### logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L198)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L198)

```python def logprobs(self) -> Optional[bool]: @@ -330,7 +330,7 @@ The default logprobs. ### max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L218)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L218)

```python def max_completion_tokens(self) -> Optional[int]: @@ -346,7 +346,7 @@ The default max tokens. ### messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L161)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L161)

```python def messages( @@ -369,7 +369,7 @@ The default messages. ### model -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L321)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L321)

```python def model(self) -> str: @@ -385,7 +385,7 @@ The model name. ### n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L228)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L228)

```python def n(self) -> Optional[int]: @@ -401,7 +401,7 @@ The default n value. ### output\_cost -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L296)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L296)

```python def output_cost(self) -> float: @@ -413,7 +413,7 @@ def output_cost(self) -> float: ### parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L338)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L338)

```python def parallel_tool_calls(self) -> Optional[bool]: @@ -429,7 +429,7 @@ The default parallel tool calls bool. ### presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L238)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L238)

```python def presence_penalty(self) -> Optional[float]: @@ -445,7 +445,7 @@ The default presence penalty. ### provider -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L331)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L331)

```python def provider(self) -> str: @@ -461,7 +461,7 @@ The provider name. ### region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L378)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L378)

```python def region(self) -> Optional[str]: @@ -477,7 +477,7 @@ The default region. ### response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L248)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L248)

```python def response_format(self) -> Optional[ResponseFormat]: @@ -493,7 +493,7 @@ The default response format. ### return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L418)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L418)

```python def return_full_completion(self) -> bool: @@ -509,7 +509,7 @@ The default return full completion bool. ### seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L258)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L258)

```python def seed(self) -> Optional[int]: @@ -525,7 +525,7 @@ The default seed value. ### stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L408)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L408)

```python def stateful(self) -> bool: @@ -541,7 +541,7 @@ The default stateful bool. ### stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L268)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L268)

```python def stop(self) -> Union[Optional[str], List[str]]: @@ -557,7 +557,7 @@ The default stop value. ### stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L278)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L278)

```python def stream(self) -> Optional[bool]: @@ -573,7 +573,7 @@ The default stream bool. ### stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L288)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L288)

```python def stream_options(self) -> Optional[ChatCompletionStreamOptionsParam]: @@ -589,7 +589,7 @@ The default stream options. ### system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L151)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L151)

```python def system_message(self) -> Optional[str]: @@ -605,7 +605,7 @@ The default system message. ### tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L358)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L358)

```python def tags(self) -> Optional[List[str]]: @@ -621,7 +621,7 @@ The default tags. ### temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L298)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L298)

```python def temperature(self) -> Optional[float]: @@ -637,7 +637,7 @@ The default temperature. ### tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L328)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L328)

```python def tool_choice(self) -> Optional[ChatCompletionToolChoiceOptionParam]: @@ -653,7 +653,7 @@ The default tool choice. ### tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L318)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L318)

```python def tools(self) -> Optional[Iterable[ChatCompletionToolParam]]: @@ -669,7 +669,7 @@ The default tools. ### top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L208)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L208)

```python def top_logprobs(self) -> Optional[int]: @@ -685,7 +685,7 @@ The default top logprobs. ### top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L308)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L308)

```python def top_p(self) -> Optional[float]: @@ -701,7 +701,7 @@ The default top p value. ### traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L428)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L428)

```python def traced(self) -> bool: @@ -717,7 +717,7 @@ The default traced bool. ### ttft -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L300)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L300)

```python def ttft(self) -> float: @@ -729,7 +729,7 @@ def ttft(self) -> float: ### use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L348)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L348)

```python def use_custom_keys(self) -> bool: @@ -747,7 +747,7 @@ The default use custom keys bool. ### set\_cache -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L910)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L910)

```python def set_cache(self, value: bool) -> Self: @@ -769,7 +769,7 @@ This client, useful for chaining inplace calls. ### set\_default\_prompt -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L962)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L962)

```python def set_default_prompt(self, value: Prompt) -> Self: @@ -785,7 +785,7 @@ This client, useful for chaining inplace calls. ### set\_drop\_params -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L818)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L818)

```python def set_drop_params(self, value: bool) -> Self: @@ -807,7 +807,7 @@ This client, useful for chaining inplace calls. ### set\_endpoint -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L344)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L344)

```python def set_endpoint(self, value: str) -> Self: @@ -829,7 +829,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L949)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L949)

```python def set_extra_body(self, value: Body) -> Self: @@ -851,7 +851,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_headers -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L923)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L923)

```python def set_extra_headers(self, value: Headers) -> Self: @@ -873,7 +873,7 @@ This client, useful for chaining inplace calls. ### set\_extra\_query -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L936)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L936)

```python def set_extra_query(self, value: Query) -> Self: @@ -895,7 +895,7 @@ This client, useful for chaining inplace calls. ### set\_frequency\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L571)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L571)

```python def set_frequency_penalty(self, value: float) -> Self: @@ -917,7 +917,7 @@ This client, useful for chaining inplace calls. ### set\_log\_query\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L844)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L844)

```python def set_log_query_body(self, value: bool) -> Self: @@ -939,7 +939,7 @@ This client, useful for chaining inplace calls. ### set\_log\_response\_body -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L857)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L857)

```python def set_log_response_body(self, value: bool) -> Self: @@ -961,7 +961,7 @@ This client, useful for chaining inplace calls. ### set\_logit\_bias -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L584)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L584)

```python def set_logit_bias(self, value: Dict[str, int]) -> Self: @@ -983,7 +983,7 @@ This client, useful for chaining inplace calls. ### set\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L597)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L597)

```python def set_logprobs(self, value: bool) -> Self: @@ -1005,7 +1005,7 @@ This client, useful for chaining inplace calls. ### set\_max\_completion\_tokens -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L623)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L623)

```python def set_max_completion_tokens(self, value: int) -> Self: @@ -1027,7 +1027,7 @@ This client, useful for chaining inplace calls. ### set\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L529)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L529)

```python def set_messages( @@ -1055,7 +1055,7 @@ This client, useful for chaining inplace calls. ### set\_model -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L364)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L364)

```python def set_model(self, value: str) -> Self: @@ -1077,7 +1077,7 @@ This client, useful for chaining inplace calls. ### set\_n -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L636)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L636)

```python def set_n(self, value: int) -> Self: @@ -1099,7 +1099,7 @@ This client, useful for chaining inplace calls. ### set\_parallel\_tool\_calls -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L779)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L779)

```python def set_parallel_tool_calls(self, value: bool) -> Self: @@ -1121,7 +1121,7 @@ This client, useful for chaining inplace calls. ### set\_presence\_penalty -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L649)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L649)

```python def set_presence_penalty(self, value: float) -> Self: @@ -1143,7 +1143,7 @@ This client, useful for chaining inplace calls. ### set\_provider -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L384)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L384)

```python def set_provider(self, value: str) -> Self: @@ -1165,7 +1165,7 @@ This client, useful for chaining inplace calls. ### set\_region -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L831)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L831)

```python def set_region(self, value: str) -> Self: @@ -1187,7 +1187,7 @@ This client, useful for chaining inplace calls. ### set\_response\_format -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L662)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L662)

```python def set_response_format(self, value: ResponseFormat) -> Self: @@ -1209,7 +1209,7 @@ This client, useful for chaining inplace calls. ### set\_return\_full\_completion -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L883)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L883)

```python def set_return_full_completion(self, value: bool) -> Self: @@ -1231,7 +1231,7 @@ This client, useful for chaining inplace calls. ### set\_seed -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L675)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L675)

```python def set_seed(self, value: Optional[int]) -> Self: @@ -1253,7 +1253,7 @@ This client, useful for chaining inplace calls. ### set\_stateful -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L870)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L870)

```python def set_stateful(self, value: bool) -> Self: @@ -1275,7 +1275,7 @@ This client, useful for chaining inplace calls. ### set\_stop -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L688)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L688)

```python def set_stop(self, value: Union[str, List[str]]) -> Self: @@ -1297,7 +1297,7 @@ This client, useful for chaining inplace calls. ### set\_stream -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L701)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L701)

```python def set_stream(self, value: bool) -> Self: @@ -1319,7 +1319,7 @@ This client, useful for chaining inplace calls. ### set\_stream\_options -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L714)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L714)

```python def set_stream_options(self, value: ChatCompletionStreamOptionsParam) -> Self: @@ -1341,7 +1341,7 @@ This client, useful for chaining inplace calls. ### set\_system\_message -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L497)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L497)

```python def set_system_message(self, value: str) -> Self: @@ -1363,7 +1363,7 @@ This client, useful for chaining inplace calls. ### set\_tags -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L805)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L805)

```python def set_tags(self, value: List[str]) -> Self: @@ -1385,7 +1385,7 @@ This client, useful for chaining inplace calls. ### set\_temperature -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L727)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L727)

```python def set_temperature(self, value: float) -> Self: @@ -1407,7 +1407,7 @@ This client, useful for chaining inplace calls. ### set\_tool\_choice -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L766)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L766)

```python def set_tool_choice(self, value: ChatCompletionToolChoiceOptionParam) -> Self: @@ -1429,7 +1429,7 @@ This client, useful for chaining inplace calls. ### set\_tools -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L753)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L753)

```python def set_tools(self, value: Iterable[ChatCompletionToolParam]) -> Self: @@ -1451,7 +1451,7 @@ This client, useful for chaining inplace calls. ### set\_top\_logprobs -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L610)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L610)

```python def set_top_logprobs(self, value: int) -> Self: @@ -1473,7 +1473,7 @@ This client, useful for chaining inplace calls. ### set\_top\_p -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L740)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L740)

```python def set_top_p(self, value: float) -> Self: @@ -1495,7 +1495,7 @@ This client, useful for chaining inplace calls. ### set\_traced -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L897)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L897)

```python def set_traced(self, value: bool) -> Self: @@ -1517,7 +1517,7 @@ This client, useful for chaining inplace calls. ### set\_use\_custom\_keys -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L792)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L792)

```python def set_use_custom_keys(self, value: bool) -> Self: @@ -1541,7 +1541,7 @@ This client, useful for chaining inplace calls. ### append\_messages -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L550)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L550)

```python def append_messages( @@ -1569,7 +1569,7 @@ This client, useful for chaining inplace calls. ### generate -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L457)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L457)

```python def generate( @@ -1674,7 +1674,7 @@ If stream is False, returns a single string response. ### get\_credit\_balance -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/base.py#L980)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/base.py#L980)

```python def get_credit_balance(self) -> Union[float, None]: @@ -1695,7 +1695,7 @@ ValueError: If there was an error parsing the JSON response. ### to\_async\_client -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L971)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L971)

```python def to_async_client(self): @@ -1715,7 +1715,7 @@ instance. ### \_\_repr\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L441)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L441)

```python def __repr__(self): @@ -1727,7 +1727,7 @@ def __repr__(self): ### \_\_str\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/clients/uni_llm.py#L444)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/clients/uni_llm.py#L444)

```python def __str__(self): diff --git a/python/classes/universal_api/types/prompt/Prompt.mdx b/python/classes/universal_api/types/prompt/Prompt.mdx index e5bd07eda..1ec897454 100644 --- a/python/classes/universal_api/types/prompt/Prompt.mdx +++ b/python/classes/universal_api/types/prompt/Prompt.mdx @@ -6,13 +6,13 @@ title: 'Prompt' class Prompt ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L13)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L13)

### \_\_init\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L35)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L35)

```python def __init__( @@ -43,7 +43,7 @@ The pydantic Prompt instance. ### \_\_fields\_set\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L1142)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L1142)

```python def __fields_set__(self) -> set[str]: @@ -55,7 +55,7 @@ def __fields_set__(self) -> set[str]: ### model\_extra -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L260)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L260)

```python def model_extra(self) -> dict[str, Any] | None: @@ -71,7 +71,7 @@ A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow" ### model\_fields\_set -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L269)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L269)

```python def model_fields_set(self) -> set[str]: @@ -90,7 +90,7 @@ i.e. that were not filled from defaults. ### \_\_add\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L66)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L66)

```python def __add__(self, other): @@ -102,7 +102,7 @@ def __add__(self, other): ### \_\_hash\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L90)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L90)

```python def __hash__(self): @@ -114,7 +114,7 @@ def __hash__(self): ### \_\_radd\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L78)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L78)

```python def __radd__(self, other): @@ -126,7 +126,7 @@ def __radd__(self, other): ### \_\_rsub\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L85)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L85)

```python def __rsub__(self, other): @@ -138,7 +138,7 @@ def __rsub__(self, other): ### \_\_sub\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/types/prompt.py#L73)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/types/prompt.py#L73)

```python def __sub__(self, other): diff --git a/python/classes/universal_api/utils/endpoint_metrics/Metrics.mdx b/python/classes/universal_api/utils/endpoint_metrics/Metrics.mdx index 67cf21fbf..38ea54b14 100644 --- a/python/classes/universal_api/utils/endpoint_metrics/Metrics.mdx +++ b/python/classes/universal_api/utils/endpoint_metrics/Metrics.mdx @@ -6,7 +6,7 @@ title: 'Metrics' class Metrics ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/endpoint_metrics.py#L11)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/endpoint_metrics.py#L11)

@@ -16,7 +16,7 @@ class Metrics ### \_\_fields\_set\_\_ -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L1142)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L1142)

```python def __fields_set__(self) -> set[str]: @@ -28,7 +28,7 @@ def __fields_set__(self) -> set[str]: ### model\_extra -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L260)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L260)

```python def model_extra(self) -> dict[str, Any] | None: @@ -44,7 +44,7 @@ A dictionary of extra fields, or `None` if `config.extra` is not set to `"allow" ### model\_fields\_set -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/pydantic/main.py#L269)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/pydantic/main.py#L269)

```python def model_fields_set(self) -> set[str]: diff --git a/python/functions/interfaces/logs/traced.mdx b/python/functions/interfaces/logs/traced.mdx index a0d406e11..61b7cca8e 100644 --- a/python/functions/interfaces/logs/traced.mdx +++ b/python/functions/interfaces/logs/traced.mdx @@ -12,5 +12,5 @@ def traced( ): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/logs.py#L217)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/logs.py#L217)

diff --git a/python/functions/interfaces/utils/artifacts/add_project_artifacts.mdx b/python/functions/interfaces/utils/artifacts/add_project_artifacts.mdx index 49d6d5c27..c8b2e1fe3 100644 --- a/python/functions/interfaces/utils/artifacts/add_project_artifacts.mdx +++ b/python/functions/interfaces/utils/artifacts/add_project_artifacts.mdx @@ -11,7 +11,7 @@ def add_project_artifacts( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/artifacts.py#L12)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/artifacts.py#L12)

Creates one or more artifacts associated to a project. Artifacts are project-level metadata that don’t depend on other variables. diff --git a/python/functions/interfaces/utils/artifacts/delete_project_artifact.mdx b/python/functions/interfaces/utils/artifacts/delete_project_artifact.mdx index 1e5a4520b..9a093332c 100644 --- a/python/functions/interfaces/utils/artifacts/delete_project_artifact.mdx +++ b/python/functions/interfaces/utils/artifacts/delete_project_artifact.mdx @@ -11,7 +11,7 @@ def delete_project_artifact( ) -> str: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/artifacts.py#L50)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/artifacts.py#L50)

Deletes an artifact from a project. diff --git a/python/functions/interfaces/utils/artifacts/get_project_artifacts.mdx b/python/functions/interfaces/utils/artifacts/get_project_artifacts.mdx index 22b785663..e76302e43 100644 --- a/python/functions/interfaces/utils/artifacts/get_project_artifacts.mdx +++ b/python/functions/interfaces/utils/artifacts/get_project_artifacts.mdx @@ -10,7 +10,7 @@ def get_project_artifacts( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/artifacts.py#L84)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/artifacts.py#L84)

Returns the key-value pairs for all artifacts in a project. diff --git a/python/functions/interfaces/utils/compositions/add_params.mdx b/python/functions/interfaces/utils/compositions/add_params.mdx index 4ff6cdc60..d764c8a48 100644 --- a/python/functions/interfaces/utils/compositions/add_params.mdx +++ b/python/functions/interfaces/utils/compositions/add_params.mdx @@ -11,7 +11,7 @@ def add_params( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L185)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L185)

Adds new parameters to the logs (defaults to all logs). diff --git a/python/functions/interfaces/utils/compositions/delete_logs_by_value.mdx b/python/functions/interfaces/utils/compositions/delete_logs_by_value.mdx index 8c7466c30..de815ded5 100644 --- a/python/functions/interfaces/utils/compositions/delete_logs_by_value.mdx +++ b/python/functions/interfaces/utils/compositions/delete_logs_by_value.mdx @@ -11,7 +11,7 @@ def delete_logs_by_value( ): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L340)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L340)

Delete logs by value within a project. diff --git a/python/functions/interfaces/utils/compositions/get_log_by_value.mdx b/python/functions/interfaces/utils/compositions/get_log_by_value.mdx index 311b6bd6a..732bc5949 100644 --- a/python/functions/interfaces/utils/compositions/get_log_by_value.mdx +++ b/python/functions/interfaces/utils/compositions/get_log_by_value.mdx @@ -11,7 +11,7 @@ def get_log_by_value( ) -> Optional[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L480)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L480)

Returns the log with the data matching exactly if it exists, otherwise returns None. diff --git a/python/functions/interfaces/utils/compositions/get_logs_by_id.mdx b/python/functions/interfaces/utils/compositions/get_logs_by_id.mdx index 6d995853d..8eb2b99f8 100644 --- a/python/functions/interfaces/utils/compositions/get_logs_by_id.mdx +++ b/python/functions/interfaces/utils/compositions/get_logs_by_id.mdx @@ -10,7 +10,7 @@ def get_logs_by_id( ) -> List[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L428)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L428)

Returns the logs associated with a given ids. diff --git a/python/functions/interfaces/utils/compositions/get_logs_by_value.mdx b/python/functions/interfaces/utils/compositions/get_logs_by_value.mdx index fb1d0a4df..310168356 100644 --- a/python/functions/interfaces/utils/compositions/get_logs_by_value.mdx +++ b/python/functions/interfaces/utils/compositions/get_logs_by_value.mdx @@ -11,7 +11,7 @@ def get_logs_by_value( ) -> List[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L450)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L450)

Returns the logs with the data matching exactly if it exists, otherwise returns None. diff --git a/python/functions/interfaces/utils/compositions/get_logs_with_fields.mdx b/python/functions/interfaces/utils/compositions/get_logs_with_fields.mdx index 40c854e3f..8f3da96ac 100644 --- a/python/functions/interfaces/utils/compositions/get_logs_with_fields.mdx +++ b/python/functions/interfaces/utils/compositions/get_logs_with_fields.mdx @@ -11,7 +11,7 @@ def get_logs_with_fields( ) -> List[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L367)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L367)

Returns a list of logs which contain the specified fields, either the logs which contain all of them ("all") or the logs which contain any of the fields ("any"). diff --git a/python/functions/interfaces/utils/compositions/get_logs_without_fields.mdx b/python/functions/interfaces/utils/compositions/get_logs_without_fields.mdx index 7525f7f5b..4dff8c485 100644 --- a/python/functions/interfaces/utils/compositions/get_logs_without_fields.mdx +++ b/python/functions/interfaces/utils/compositions/get_logs_without_fields.mdx @@ -11,7 +11,7 @@ def get_logs_without_fields( ) -> List[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L397)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L397)

Returns a list of logs which do not contain the specified fields, either the logs which do not contain all of the fields ("all") or the logs which do not contain any diff --git a/python/functions/interfaces/utils/compositions/get_params.mdx b/python/functions/interfaces/utils/compositions/get_params.mdx index e1bbe437b..943fe091f 100644 --- a/python/functions/interfaces/utils/compositions/get_params.mdx +++ b/python/functions/interfaces/utils/compositions/get_params.mdx @@ -10,7 +10,7 @@ def get_params( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L211)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L211)

Gets all parameter names within the collection of logs (default to all logs). diff --git a/python/functions/interfaces/utils/compositions/get_source.mdx b/python/functions/interfaces/utils/compositions/get_source.mdx index 0c97c8910..2a5c2f35d 100644 --- a/python/functions/interfaces/utils/compositions/get_source.mdx +++ b/python/functions/interfaces/utils/compositions/get_source.mdx @@ -6,7 +6,7 @@ title: 'get_source' def get_source() -> str: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L236)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L236)

Extracts the source code for the file from where this function was called. diff --git a/python/functions/interfaces/utils/compositions/group_logs.mdx b/python/functions/interfaces/utils/compositions/group_logs.mdx index 2cf5d821e..cd357deca 100644 --- a/python/functions/interfaces/utils/compositions/group_logs.mdx +++ b/python/functions/interfaces/utils/compositions/group_logs.mdx @@ -11,7 +11,7 @@ def group_logs( ): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L509)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L509)

Groups logs based on equality '==' of the values for the specified key, returning a dict with group indices as the keys and the list of logs as the values. If the keys diff --git a/python/functions/interfaces/utils/compositions/group_logs_by_configs.mdx b/python/functions/interfaces/utils/compositions/group_logs_by_configs.mdx index 063866c1c..77cc2057f 100644 --- a/python/functions/interfaces/utils/compositions/group_logs_by_configs.mdx +++ b/python/functions/interfaces/utils/compositions/group_logs_by_configs.mdx @@ -9,7 +9,7 @@ def group_logs_by_configs( ) -> Dict: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L164)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L164)

Groups logs based on their unique parameter configurations. diff --git a/python/functions/interfaces/utils/compositions/rename_log_entries.mdx b/python/functions/interfaces/utils/compositions/rename_log_entries.mdx index c3f715ddd..cafd43e64 100644 --- a/python/functions/interfaces/utils/compositions/rename_log_entries.mdx +++ b/python/functions/interfaces/utils/compositions/rename_log_entries.mdx @@ -11,7 +11,7 @@ def rename_log_entries( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L310)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L310)

Renames the set of log entries. diff --git a/python/functions/interfaces/utils/compositions/rename_log_params.mdx b/python/functions/interfaces/utils/compositions/rename_log_params.mdx index bada53998..1016b1032 100644 --- a/python/functions/interfaces/utils/compositions/rename_log_params.mdx +++ b/python/functions/interfaces/utils/compositions/rename_log_params.mdx @@ -11,7 +11,7 @@ def rename_log_params( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L134)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L134)

Renames the set of log params. diff --git a/python/functions/interfaces/utils/compositions/replace_log_entries.mdx b/python/functions/interfaces/utils/compositions/replace_log_entries.mdx index 2d2321442..54ec98c3b 100644 --- a/python/functions/interfaces/utils/compositions/replace_log_entries.mdx +++ b/python/functions/interfaces/utils/compositions/replace_log_entries.mdx @@ -11,7 +11,7 @@ def replace_log_entries( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L253)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L253)

Replaces existing entries in existing logs. diff --git a/python/functions/interfaces/utils/compositions/replace_log_params.mdx b/python/functions/interfaces/utils/compositions/replace_log_params.mdx index f0bfa67b3..1ade0d17d 100644 --- a/python/functions/interfaces/utils/compositions/replace_log_params.mdx +++ b/python/functions/interfaces/utils/compositions/replace_log_params.mdx @@ -11,7 +11,7 @@ def replace_log_params( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L72)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L72)

Replaces existing params in existing logs. diff --git a/python/functions/interfaces/utils/compositions/update_log_entries.mdx b/python/functions/interfaces/utils/compositions/update_log_entries.mdx index 03a9ae2c7..93cfbfbe6 100644 --- a/python/functions/interfaces/utils/compositions/update_log_entries.mdx +++ b/python/functions/interfaces/utils/compositions/update_log_entries.mdx @@ -12,7 +12,7 @@ def update_log_entries( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L277)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L277)

Updates existing entries in an existing log. diff --git a/python/functions/interfaces/utils/compositions/update_log_params.mdx b/python/functions/interfaces/utils/compositions/update_log_params.mdx index 5f29894c4..cfcf3745f 100644 --- a/python/functions/interfaces/utils/compositions/update_log_params.mdx +++ b/python/functions/interfaces/utils/compositions/update_log_params.mdx @@ -12,7 +12,7 @@ def update_log_params( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/compositions.py#L101)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/compositions.py#L101)

Updates existing params in an existing log. diff --git a/python/functions/interfaces/utils/datasets/add_dataset_entries.mdx b/python/functions/interfaces/utils/datasets/add_dataset_entries.mdx index c62f5ef08..b1e79619a 100644 --- a/python/functions/interfaces/utils/datasets/add_dataset_entries.mdx +++ b/python/functions/interfaces/utils/datasets/add_dataset_entries.mdx @@ -11,7 +11,7 @@ def add_dataset_entries( ) -> Dict[str, Union[str, List[int]]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L194)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L194)

Adds data to a dataset, and returns a list of ids and values for each of those, split by those which were already present and those which were newly added. diff --git a/python/functions/interfaces/utils/datasets/create_dataset_artifacts.mdx b/python/functions/interfaces/utils/datasets/create_dataset_artifacts.mdx index 007ea42b2..7c93a87d3 100644 --- a/python/functions/interfaces/utils/datasets/create_dataset_artifacts.mdx +++ b/python/functions/interfaces/utils/datasets/create_dataset_artifacts.mdx @@ -11,7 +11,7 @@ def create_dataset_artifacts( ) -> Union[List[Any], None]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L331)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L331)

Downloads a dataset from the platform. diff --git a/python/functions/interfaces/utils/datasets/delete_dataset.mdx b/python/functions/interfaces/utils/datasets/delete_dataset.mdx index f9bbe1eb8..94823309e 100644 --- a/python/functions/interfaces/utils/datasets/delete_dataset.mdx +++ b/python/functions/interfaces/utils/datasets/delete_dataset.mdx @@ -10,7 +10,7 @@ def delete_dataset( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L98)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L98)

Deletes a dataset from the platform. diff --git a/python/functions/interfaces/utils/datasets/delete_dataset_artifact.mdx b/python/functions/interfaces/utils/datasets/delete_dataset_artifact.mdx index 2d3b9eaa1..299fe3725 100644 --- a/python/functions/interfaces/utils/datasets/delete_dataset_artifact.mdx +++ b/python/functions/interfaces/utils/datasets/delete_dataset_artifact.mdx @@ -11,7 +11,7 @@ def delete_dataset_artifact( ) -> Union[List[Any], None]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L366)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L366)

Deletes dataset artifact from the platform. diff --git a/python/functions/interfaces/utils/datasets/delete_dataset_entry.mdx b/python/functions/interfaces/utils/datasets/delete_dataset_entry.mdx index 05c46d2ca..8f45b7b79 100644 --- a/python/functions/interfaces/utils/datasets/delete_dataset_entry.mdx +++ b/python/functions/interfaces/utils/datasets/delete_dataset_entry.mdx @@ -11,7 +11,7 @@ def delete_dataset_entry( ) -> Dict[str, Union[str, List[int]]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L233)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L233)

Deletes data from a dataset by id, and returns a list of ids and values for each of those, split by those which were deleted and those which were not present. diff --git a/python/functions/interfaces/utils/datasets/download_dataset.mdx b/python/functions/interfaces/utils/datasets/download_dataset.mdx index f7dc14210..73117de90 100644 --- a/python/functions/interfaces/utils/datasets/download_dataset.mdx +++ b/python/functions/interfaces/utils/datasets/download_dataset.mdx @@ -11,7 +11,7 @@ def download_dataset( ) -> Optional[List[Any]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L60)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L60)

Downloads a dataset from the platform. diff --git a/python/functions/interfaces/utils/datasets/download_dataset_artifacts.mdx b/python/functions/interfaces/utils/datasets/download_dataset_artifacts.mdx index bc74b5088..0cffc29b4 100644 --- a/python/functions/interfaces/utils/datasets/download_dataset_artifacts.mdx +++ b/python/functions/interfaces/utils/datasets/download_dataset_artifacts.mdx @@ -10,7 +10,7 @@ def download_dataset_artifacts( ) -> Union[Dict[str, Any], None]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L304)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L304)

Downloads a dataset from the platform. diff --git a/python/functions/interfaces/utils/datasets/get_dataset_entry.mdx b/python/functions/interfaces/utils/datasets/get_dataset_entry.mdx index fe7e7daa4..b1f1815fc 100644 --- a/python/functions/interfaces/utils/datasets/get_dataset_entry.mdx +++ b/python/functions/interfaces/utils/datasets/get_dataset_entry.mdx @@ -11,7 +11,7 @@ def get_dataset_entry( ) -> List[Dict[str, Union[int, Any]]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L270)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L270)

Returns the specified dataset entry. diff --git a/python/functions/interfaces/utils/datasets/list_datasets.mdx b/python/functions/interfaces/utils/datasets/list_datasets.mdx index 16107cb31..8e15ad3a6 100644 --- a/python/functions/interfaces/utils/datasets/list_datasets.mdx +++ b/python/functions/interfaces/utils/datasets/list_datasets.mdx @@ -9,7 +9,7 @@ def list_datasets( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L160)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L160)

Fetches a list of all uploaded datasets. diff --git a/python/functions/interfaces/utils/datasets/rename_dataset.mdx b/python/functions/interfaces/utils/datasets/rename_dataset.mdx index 5f4684778..010d92895 100644 --- a/python/functions/interfaces/utils/datasets/rename_dataset.mdx +++ b/python/functions/interfaces/utils/datasets/rename_dataset.mdx @@ -11,7 +11,7 @@ def rename_dataset( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L126)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L126)

Renames a dataset in the platform. diff --git a/python/functions/interfaces/utils/datasets/upload_dataset.mdx b/python/functions/interfaces/utils/datasets/upload_dataset.mdx index 4c3ab9b75..91e40a5b9 100644 --- a/python/functions/interfaces/utils/datasets/upload_dataset.mdx +++ b/python/functions/interfaces/utils/datasets/upload_dataset.mdx @@ -11,7 +11,7 @@ def upload_dataset( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/datasets.py#L17)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/datasets.py#L17)

Uploads a dataset to the platform diff --git a/python/functions/interfaces/utils/logs/add_log_entries.mdx b/python/functions/interfaces/utils/logs/add_log_entries.mdx index a243808bb..8d9b27a4d 100644 --- a/python/functions/interfaces/utils/logs/add_log_entries.mdx +++ b/python/functions/interfaces/utils/logs/add_log_entries.mdx @@ -6,5 +6,5 @@ title: 'add_log_entries' def wrapped(*args, **kwargs): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L349)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L349)

diff --git a/python/functions/interfaces/utils/logs/add_log_params.mdx b/python/functions/interfaces/utils/logs/add_log_params.mdx index 0f30099f7..4fd611d55 100644 --- a/python/functions/interfaces/utils/logs/add_log_params.mdx +++ b/python/functions/interfaces/utils/logs/add_log_params.mdx @@ -6,5 +6,5 @@ title: 'add_log_params' def wrapped(*args, **kwargs): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L323)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L323)

diff --git a/python/functions/interfaces/utils/logs/delete_log_fields.mdx b/python/functions/interfaces/utils/logs/delete_log_fields.mdx index e552a4d99..ba4d5674c 100644 --- a/python/functions/interfaces/utils/logs/delete_log_fields.mdx +++ b/python/functions/interfaces/utils/logs/delete_log_fields.mdx @@ -6,5 +6,5 @@ title: 'delete_log_fields' def wrapped(*args, **kwargs): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L414)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L414)

diff --git a/python/functions/interfaces/utils/logs/delete_logs.mdx b/python/functions/interfaces/utils/logs/delete_logs.mdx index ac8a82dae..7e4e8e585 100644 --- a/python/functions/interfaces/utils/logs/delete_logs.mdx +++ b/python/functions/interfaces/utils/logs/delete_logs.mdx @@ -6,5 +6,5 @@ title: 'delete_logs' def wrapped(*args, **kwargs): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L384)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L384)

diff --git a/python/functions/interfaces/utils/logs/get_groups.mdx b/python/functions/interfaces/utils/logs/get_groups.mdx index 6df2f7122..790409a43 100644 --- a/python/functions/interfaces/utils/logs/get_groups.mdx +++ b/python/functions/interfaces/utils/logs/get_groups.mdx @@ -11,7 +11,7 @@ def get_groups( ) -> Dict[str, List[Dict[str, Any]]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L598)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L598)

Returns a list of the different version/values of one entry within a given project based on its key. diff --git a/python/functions/interfaces/utils/logs/get_log_by_id.mdx b/python/functions/interfaces/utils/logs/get_log_by_id.mdx index de010d9b9..e6435623a 100644 --- a/python/functions/interfaces/utils/logs/get_log_by_id.mdx +++ b/python/functions/interfaces/utils/logs/get_log_by_id.mdx @@ -11,7 +11,7 @@ def get_log_by_id( ) -> unify.Log: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L506)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L506)

Returns the log associated with a given id. diff --git a/python/functions/interfaces/utils/logs/get_logs.mdx b/python/functions/interfaces/utils/logs/get_logs.mdx index 0c8197d75..2dcfb579b 100644 --- a/python/functions/interfaces/utils/logs/get_logs.mdx +++ b/python/functions/interfaces/utils/logs/get_logs.mdx @@ -13,7 +13,7 @@ def get_logs( ) -> List[unify.Log]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L451)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L451)

Returns a list of filtered logs from a project. diff --git a/python/functions/interfaces/utils/logs/get_logs_metric.mdx b/python/functions/interfaces/utils/logs/get_logs_metric.mdx index be8511ea2..b53cae8d1 100644 --- a/python/functions/interfaces/utils/logs/get_logs_metric.mdx +++ b/python/functions/interfaces/utils/logs/get_logs_metric.mdx @@ -13,7 +13,7 @@ def get_logs_metric( ) -> Union[float, int, bool]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L552)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L552)

Retrieve a set of log metrics across a project, after applying the filtering. diff --git a/python/functions/interfaces/utils/logs/log.mdx b/python/functions/interfaces/utils/logs/log.mdx index 4c0f07cb9..d5018d157 100644 --- a/python/functions/interfaces/utils/logs/log.mdx +++ b/python/functions/interfaces/utils/logs/log.mdx @@ -6,5 +6,5 @@ title: 'log' def wrapped(*args, **kwargs): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/logs.py#L168)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/logs.py#L168)

diff --git a/python/functions/interfaces/utils/projects/create_project.mdx b/python/functions/interfaces/utils/projects/create_project.mdx index a5e562218..fc6b48279 100644 --- a/python/functions/interfaces/utils/projects/create_project.mdx +++ b/python/functions/interfaces/utils/projects/create_project.mdx @@ -11,7 +11,7 @@ def create_project( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/projects.py#L12)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/projects.py#L12)

Creates a logging project and adds this to your account. This project will have a set of logs associated with it. diff --git a/python/functions/interfaces/utils/projects/delete_project.mdx b/python/functions/interfaces/utils/projects/delete_project.mdx index 8463ceb2f..a74723119 100644 --- a/python/functions/interfaces/utils/projects/delete_project.mdx +++ b/python/functions/interfaces/utils/projects/delete_project.mdx @@ -10,7 +10,7 @@ def delete_project( ) -> str: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/projects.py#L78)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/projects.py#L78)

Deletes a project from your account. diff --git a/python/functions/interfaces/utils/projects/list_projects.mdx b/python/functions/interfaces/utils/projects/list_projects.mdx index 40390e7ed..6851ec272 100644 --- a/python/functions/interfaces/utils/projects/list_projects.mdx +++ b/python/functions/interfaces/utils/projects/list_projects.mdx @@ -9,7 +9,7 @@ def list_projects( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/projects.py#L105)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/projects.py#L105)

Returns the names of all projects stored in your account. diff --git a/python/functions/interfaces/utils/projects/rename_project.mdx b/python/functions/interfaces/utils/projects/rename_project.mdx index a957c320b..3af297c1f 100644 --- a/python/functions/interfaces/utils/projects/rename_project.mdx +++ b/python/functions/interfaces/utils/projects/rename_project.mdx @@ -11,7 +11,7 @@ def rename_project( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/interfaces/utils/projects.py#L47)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/interfaces/utils/projects.py#L47)

Renames a project from `name` to `new_name` in your account. diff --git a/python/functions/universal_api/casting/cast.mdx b/python/functions/universal_api/casting/cast.mdx index 9ec7296e9..2ec4a974d 100644 --- a/python/functions/universal_api/casting/cast.mdx +++ b/python/functions/universal_api/casting/cast.mdx @@ -12,7 +12,7 @@ def cast( ) -> Union[str, bool, float, Prompt, ChatCompletion]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/casting.py#L79)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/casting.py#L79)

Cast the input to the specified type. diff --git a/python/functions/universal_api/casting/try_cast.mdx b/python/functions/universal_api/casting/try_cast.mdx index 5382fc09b..15fd1953b 100644 --- a/python/functions/universal_api/casting/try_cast.mdx +++ b/python/functions/universal_api/casting/try_cast.mdx @@ -12,5 +12,5 @@ def try_cast( ) -> Union[str, bool, float, Prompt, ChatCompletion]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/casting.py#L105)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/casting.py#L105)

diff --git a/python/functions/universal_api/usage/with_logging.mdx b/python/functions/universal_api/usage/with_logging.mdx index dd066ff63..6cf05fb6e 100644 --- a/python/functions/universal_api/usage/with_logging.mdx +++ b/python/functions/universal_api/usage/with_logging.mdx @@ -15,7 +15,7 @@ def with_logging( ): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/usage.py#L9)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/usage.py#L9)

Wrap a local model callable with logging of the queries. diff --git a/python/functions/universal_api/utils/credits/get_credits.mdx b/python/functions/universal_api/utils/credits/get_credits.mdx index 2824a2b94..243e86916 100644 --- a/python/functions/universal_api/utils/credits/get_credits.mdx +++ b/python/functions/universal_api/utils/credits/get_credits.mdx @@ -6,7 +6,7 @@ title: 'get_credits' def get_credits(*, api_key: Optional[str] = None) -> float: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/credits.py#L9)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/credits.py#L9)

Returns the credits remaining in the user account, in USD. diff --git a/python/functions/universal_api/utils/custom_api_keys/create_custom_api_key.mdx b/python/functions/universal_api/utils/custom_api_keys/create_custom_api_key.mdx index 533ac1560..fad2240ad 100644 --- a/python/functions/universal_api/utils/custom_api_keys/create_custom_api_key.mdx +++ b/python/functions/universal_api/utils/custom_api_keys/create_custom_api_key.mdx @@ -11,7 +11,7 @@ def create_custom_api_key( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_api_keys.py#L8)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_api_keys.py#L8)

Create a custom API key. diff --git a/python/functions/universal_api/utils/custom_api_keys/delete_custom_api_key.mdx b/python/functions/universal_api/utils/custom_api_keys/delete_custom_api_key.mdx index ea03de3a1..e44bd005d 100644 --- a/python/functions/universal_api/utils/custom_api_keys/delete_custom_api_key.mdx +++ b/python/functions/universal_api/utils/custom_api_keys/delete_custom_api_key.mdx @@ -10,7 +10,7 @@ def delete_custom_api_key( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_api_keys.py#L75)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_api_keys.py#L75)

Delete a custom API key. diff --git a/python/functions/universal_api/utils/custom_api_keys/get_custom_api_key.mdx b/python/functions/universal_api/utils/custom_api_keys/get_custom_api_key.mdx index 209eeffff..372b36779 100644 --- a/python/functions/universal_api/utils/custom_api_keys/get_custom_api_key.mdx +++ b/python/functions/universal_api/utils/custom_api_keys/get_custom_api_key.mdx @@ -10,7 +10,7 @@ def get_custom_api_key( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_api_keys.py#L42)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_api_keys.py#L42)

Get the value of a custom API key. diff --git a/python/functions/universal_api/utils/custom_api_keys/list_custom_api_keys.mdx b/python/functions/universal_api/utils/custom_api_keys/list_custom_api_keys.mdx index e201aaf5c..15958843c 100644 --- a/python/functions/universal_api/utils/custom_api_keys/list_custom_api_keys.mdx +++ b/python/functions/universal_api/utils/custom_api_keys/list_custom_api_keys.mdx @@ -9,7 +9,7 @@ def list_custom_api_keys( ) -> List[Dict[str, str]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_api_keys.py#L151)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_api_keys.py#L151)

Get a list of custom API keys associated with the user's account. diff --git a/python/functions/universal_api/utils/custom_api_keys/rename_custom_api_key.mdx b/python/functions/universal_api/utils/custom_api_keys/rename_custom_api_key.mdx index c999a357f..cc5414df3 100644 --- a/python/functions/universal_api/utils/custom_api_keys/rename_custom_api_key.mdx +++ b/python/functions/universal_api/utils/custom_api_keys/rename_custom_api_key.mdx @@ -11,7 +11,7 @@ def rename_custom_api_key( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_api_keys.py#L114)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_api_keys.py#L114)

Rename a custom API key. diff --git a/python/functions/universal_api/utils/custom_endpoints/create_custom_endpoint.mdx b/python/functions/universal_api/utils/custom_endpoints/create_custom_endpoint.mdx index 55975f1de..989c81c7f 100644 --- a/python/functions/universal_api/utils/custom_endpoints/create_custom_endpoint.mdx +++ b/python/functions/universal_api/utils/custom_endpoints/create_custom_endpoint.mdx @@ -14,7 +14,7 @@ def create_custom_endpoint( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_endpoints.py#L9)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_endpoints.py#L9)

Create a custom endpoint for API calls. diff --git a/python/functions/universal_api/utils/custom_endpoints/delete_custom_endpoint.mdx b/python/functions/universal_api/utils/custom_endpoints/delete_custom_endpoint.mdx index 6b000d370..cb10c9035 100644 --- a/python/functions/universal_api/utils/custom_endpoints/delete_custom_endpoint.mdx +++ b/python/functions/universal_api/utils/custom_endpoints/delete_custom_endpoint.mdx @@ -10,7 +10,7 @@ def delete_custom_endpoint( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_endpoints.py#L64)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_endpoints.py#L64)

Delete a custom endpoint. diff --git a/python/functions/universal_api/utils/custom_endpoints/list_custom_endpoints.mdx b/python/functions/universal_api/utils/custom_endpoints/list_custom_endpoints.mdx index 3c108da8f..0af3298a6 100644 --- a/python/functions/universal_api/utils/custom_endpoints/list_custom_endpoints.mdx +++ b/python/functions/universal_api/utils/custom_endpoints/list_custom_endpoints.mdx @@ -9,7 +9,7 @@ def list_custom_endpoints( ) -> List[Dict[str, str]]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_endpoints.py#L134)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_endpoints.py#L134)

Get a list of custom endpoints for the authenticated user. diff --git a/python/functions/universal_api/utils/custom_endpoints/rename_custom_endpoint.mdx b/python/functions/universal_api/utils/custom_endpoints/rename_custom_endpoint.mdx index 6c05469dc..172a52680 100644 --- a/python/functions/universal_api/utils/custom_endpoints/rename_custom_endpoint.mdx +++ b/python/functions/universal_api/utils/custom_endpoints/rename_custom_endpoint.mdx @@ -11,7 +11,7 @@ def rename_custom_endpoint( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/custom_endpoints.py#L98)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/custom_endpoints.py#L98)

Rename a custom endpoint. diff --git a/python/functions/universal_api/utils/endpoint_metrics/delete_endpoint_metrics.mdx b/python/functions/universal_api/utils/endpoint_metrics/delete_endpoint_metrics.mdx index ca7fd519c..ab98eed0f 100644 --- a/python/functions/universal_api/utils/endpoint_metrics/delete_endpoint_metrics.mdx +++ b/python/functions/universal_api/utils/endpoint_metrics/delete_endpoint_metrics.mdx @@ -11,5 +11,5 @@ def delete_endpoint_metrics( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/endpoint_metrics.py#L119)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/endpoint_metrics.py#L119)

diff --git a/python/functions/universal_api/utils/endpoint_metrics/get_endpoint_metrics.mdx b/python/functions/universal_api/utils/endpoint_metrics/get_endpoint_metrics.mdx index 8f26fdea5..917258f41 100644 --- a/python/functions/universal_api/utils/endpoint_metrics/get_endpoint_metrics.mdx +++ b/python/functions/universal_api/utils/endpoint_metrics/get_endpoint_metrics.mdx @@ -12,7 +12,7 @@ def get_endpoint_metrics( ) -> List[Metrics]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/endpoint_metrics.py#L19)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/endpoint_metrics.py#L19)

Retrieve the set of cost and speed metrics for the specified endpoint. diff --git a/python/functions/universal_api/utils/endpoint_metrics/log_endpoint_metric.mdx b/python/functions/universal_api/utils/endpoint_metrics/log_endpoint_metric.mdx index 4dde07b9d..cec665caf 100644 --- a/python/functions/universal_api/utils/endpoint_metrics/log_endpoint_metric.mdx +++ b/python/functions/universal_api/utils/endpoint_metrics/log_endpoint_metric.mdx @@ -13,7 +13,7 @@ def log_endpoint_metric( ) -> Dict[str, str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/endpoint_metrics.py#L73)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/endpoint_metrics.py#L73)

Append speed or cost data to the standardized time-series benchmarks for a custom endpoint (only custom endpoints are publishable by end users). diff --git a/python/functions/universal_api/utils/queries/get_queries.mdx b/python/functions/universal_api/utils/queries/get_queries.mdx index 0c201a9ce..6df5fa125 100644 --- a/python/functions/universal_api/utils/queries/get_queries.mdx +++ b/python/functions/universal_api/utils/queries/get_queries.mdx @@ -15,7 +15,7 @@ def get_queries( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/queries.py#L36)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/queries.py#L36)

Get query history based on specified filters. diff --git a/python/functions/universal_api/utils/queries/get_query_metrics.mdx b/python/functions/universal_api/utils/queries/get_query_metrics.mdx index 82f949809..7f8d7c0a9 100644 --- a/python/functions/universal_api/utils/queries/get_query_metrics.mdx +++ b/python/functions/universal_api/utils/queries/get_query_metrics.mdx @@ -15,7 +15,7 @@ def get_query_metrics( ) -> Dict[str, Any]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/queries.py#L153)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/queries.py#L153)

Get query metrics for specified parameters. diff --git a/python/functions/universal_api/utils/queries/get_query_tags.mdx b/python/functions/universal_api/utils/queries/get_query_tags.mdx index 46c24e545..69898f599 100644 --- a/python/functions/universal_api/utils/queries/get_query_tags.mdx +++ b/python/functions/universal_api/utils/queries/get_query_tags.mdx @@ -9,7 +9,7 @@ def get_query_tags( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/queries.py#L10)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/queries.py#L10)

Get a list of available query tags. diff --git a/python/functions/universal_api/utils/queries/log_query.mdx b/python/functions/universal_api/utils/queries/log_query.mdx index 545d686f6..722838f49 100644 --- a/python/functions/universal_api/utils/queries/log_query.mdx +++ b/python/functions/universal_api/utils/queries/log_query.mdx @@ -14,7 +14,7 @@ def log_query( ): ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/queries.py#L100)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/queries.py#L100)

Log a query (and optionally response) for a locally deployed (non-Unify-registered) model, with tagging (default None) and timestamp (default datetime.now() also diff --git a/python/functions/universal_api/utils/supported_endpoints/list_endpoints.mdx b/python/functions/universal_api/utils/supported_endpoints/list_endpoints.mdx index 5bf827362..59563db8e 100644 --- a/python/functions/universal_api/utils/supported_endpoints/list_endpoints.mdx +++ b/python/functions/universal_api/utils/supported_endpoints/list_endpoints.mdx @@ -11,7 +11,7 @@ def list_endpoints( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/supported_endpoints.py#L78)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/supported_endpoints.py#L78)

Get a list of available endpoint, either in total or for a specific model or provider. diff --git a/python/functions/universal_api/utils/supported_endpoints/list_models.mdx b/python/functions/universal_api/utils/supported_endpoints/list_models.mdx index 956f06583..01c67aa6f 100644 --- a/python/functions/universal_api/utils/supported_endpoints/list_models.mdx +++ b/python/functions/universal_api/utils/supported_endpoints/list_models.mdx @@ -10,7 +10,7 @@ def list_models( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/supported_endpoints.py#L44)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/supported_endpoints.py#L44)

Get a list of available models, either in total or for a specific provider. diff --git a/python/functions/universal_api/utils/supported_endpoints/list_providers.mdx b/python/functions/universal_api/utils/supported_endpoints/list_providers.mdx index 1f1b7910f..b4cdec362 100644 --- a/python/functions/universal_api/utils/supported_endpoints/list_providers.mdx +++ b/python/functions/universal_api/utils/supported_endpoints/list_providers.mdx @@ -10,7 +10,7 @@ def list_providers( ) -> List[str]: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/universal_api/utils/supported_endpoints.py#L9)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/universal_api/utils/supported_endpoints.py#L9)

Get a list of available providers, either in total or for a specific model. diff --git a/python/functions/utils/map/map.mdx b/python/functions/utils/map/map.mdx index 00bade7df..81c3952a3 100644 --- a/python/functions/utils/map/map.mdx +++ b/python/functions/utils/map/map.mdx @@ -6,5 +6,5 @@ title: 'map' def map(fn: callable, *args, mode="threading", **kwargs) -> Any: ``` -

[source code](https://github.com/unifyai/unify/tree/a0df8582537164cbf7d119d625230b92fc71ee17/unify/utils/map.py#L17)

+

[source code](https://github.com/unifyai/unify/tree/4883c879ec1c9dad7b1bc7bf5ecb5348d7ce256e/unify/utils/map.py#L17)