add gpt4o mini support (#666)

This commit is contained in:
LawyZheng
2024-08-02 19:35:52 +08:00
committed by GitHub
parent a9f52c4dbb
commit 98e2f7f206
4 changed files with 49 additions and 5 deletions

View File

@@ -75,6 +75,7 @@ class Settings(BaseSettings):
ENABLE_OPENAI: bool = False
ENABLE_ANTHROPIC: bool = False
ENABLE_AZURE: bool = False
ENABLE_AZURE_GPT4O_MINI: bool = False
ENABLE_BEDROCK: bool = False
# OPENAI
OPENAI_API_KEY: str | None = None
@@ -86,6 +87,12 @@ class Settings(BaseSettings):
AZURE_API_BASE: str | None = None
AZURE_API_VERSION: str | None = None
# AZURE GPT-4o mini
AZURE_GPT4O_MINI_DEPLOYMENT: str | None = None
AZURE_GPT4O_MINI_API_KEY: str | None = None
AZURE_GPT4O_MINI_API_BASE: str | None = None
AZURE_GPT4O_MINI_API_VERSION: str | None = None
def is_cloud_environment(self) -> bool:
"""
:return: True if env is not local, else False