AzureOpenAI Embedding Model and LLM Model Initialisation from Config. (#1773)
This commit is contained in:
@@ -55,4 +55,20 @@ class MemoryConfig(BaseModel):
|
||||
description="The version of the API",
|
||||
default="v1.0",
|
||||
)
|
||||
|
||||
|
||||
|
||||
class AzureConfig(BaseModel):
|
||||
"""
|
||||
Configuration settings for Azure.
|
||||
|
||||
Args:
|
||||
api_key (str): The API key used for authenticating with the Azure service.
|
||||
azure_deployment (str): The name of the Azure deployment.
|
||||
azure_endpoint (str): The endpoint URL for the Azure service.
|
||||
api_version (str): The version of the Azure API being used.
|
||||
"""
|
||||
|
||||
api_key: str = Field(description="The API key used for authenticating with the Azure service.", default=None)
|
||||
azure_deployment : str = Field(description="The name of the Azure deployment.", default=None)
|
||||
azure_endpoint : str = Field(description="The endpoint URL for the Azure service.", default=None)
|
||||
api_version : str = Field(description="The version of the Azure API being used.", default=None)
|
||||
|
||||
Reference in New Issue
Block a user