azure_openai
langroid/language_models/azure_openai.py
AzureConfig(**kwargs)
¶
Bases: OpenAIGPTConfig
Configuration for Azure OpenAI GPT.
Attributes:
Name | Type | Description |
---|---|---|
type |
str
|
should be |
api_version |
str
|
can be set in the |
deployment_name |
str | None
|
can be optionally set in the |
model_name |
str
|
[DEPRECATED] can be set in the |
chat_model |
str
|
the chat model name to use. Can be set via
the env variable |
Source code in langroid/language_models/azure_openai.py
AzureGPT(config)
¶
Bases: OpenAIGPT
Class to access OpenAI LLMs via Azure. These env variables can be obtained from the
file .azure_env
. Azure OpenAI doesn't support completion