GPT4 integration (#324)

Co-authored-by: Suchintan <suchintan@users.noreply.github.com>
This commit is contained in:
Divyansh Verma 2024-05-17 20:55:03 +05:30 committed by GitHub
parent 45a2840538
commit 8598f56a83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ class Settings(BaseSettings):
# LLM Configuration #
#####################
# ACTIVE LLM PROVIDER
LLM_KEY: str = "OPENAI_GPT4V"
LLM_KEY: str = "OPENAI_GPT4o"
# COMMON
LLM_CONFIG_MAX_TOKENS: int = 4096
LLM_CONFIG_TEMPERATURE: float = 0
@ -81,6 +81,7 @@ class Settings(BaseSettings):
AZURE_API_BASE: str | None = None
AZURE_API_VERSION: str | None = None
def is_cloud_environment(self) -> bool:
"""
:return: True if env is not local, else False

View file

@ -42,7 +42,6 @@ class LLMConfigRegistry:
return cls._configs[llm_key]
# if none of the LLM providers are enabled, raise an error
if not any(
[