DeepInfra

Parameter reference for the DeepInfra model class, which extends OpenAILike.

The DeepInfra model provides access to DeepInfra's hosted language models.

Parameters

ParameterTypeDefaultDescription
idstr"meta-llama/Llama-2-70b-chat-hf"The id of the DeepInfra model to use
namestr"DeepInfra"The name of the model
providerstr"DeepInfra"The provider of the model
api_keyOptional[str]NoneThe API key for DeepInfra (defaults to DEEPINFRA_API_KEY env var)
base_urlstr"https://api.deepinfra.com/v1/openai"The base URL for the DeepInfra API
supports_native_structured_outputsboolFalseWhether the model supports native structured outputs

DeepInfra extends OpenAILike and accepts all of its parameters.