Skip to content

Commit

Permalink
fix azure
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jun 15, 2024
1 parent 005e053 commit 5ac03b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/funcchain/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FuncchainSettings(BaseSettings):
debug: bool = True

llm: BaseChatModel | str = Field(
default="openai/gpt-3.5-turbo",
default="openai/gpt-4o",
validate_default=False,
)

Expand Down Expand Up @@ -47,7 +47,10 @@ class FuncchainSettings(BaseSettings):
streaming: bool = False
max_tokens: int = 2048
temperature: float = 0.1
api_version: str = "2024-02-01"

# azure
azure_api_version: str = "2024-02-01"
azure_endpoint: str = ""

# LLAMACPP KWARGS
context_lenght: int = 8196
Expand All @@ -71,7 +74,9 @@ def openai_kwargs(self) -> dict:

def azure_kwargs(self) -> dict:
return {
"api_version": self.api_version,
"api_key": self.azure_api_key,
"openai_api_version": self.azure_api_version,
"azure_endpoint": self.azure_endpoint,
}

def ollama_kwargs(self) -> dict:
Expand Down

0 comments on commit 5ac03b3

Please sign in to comment.