Set Global Model
ProxAI provides a way to set the global model for all API calls. This is useful for abstracting the model choice from the API call.
def simple_question():
return
Last updated on
ProxAI provides a way to set the global model for all API calls. This is useful for abstracting the model choice from the API call.
def simple_question():
return
(claude, 3-haiku): I was created by Anthropic, a technology company based ...
(claude, 3-sonnet): I am an artificial intelligence created by Anthropic. I...
(claude, 3.5-sonnet): I was created by Anthropic....
(claude, 3.5-sonnet-v2): I'm Claude, created by Anthropic. I aim to be direct an...
...px.set_model() parameters:
| Option | Type | Default Value | Description |
|---|---|---|---|
provider_model | Union[Tuple[str, str], px.types.ProviderModel] | None | Provider model to set as global model for |