Skip to content

Commit

Permalink
Merge pull request #1 from uktrade/feat/upgrade_gpt4
Browse files Browse the repository at this point in the history
Feat/upgrade gpt4
  • Loading branch information
isobel-daley-6point6 authored Jul 11, 2024
2 parents 686e8e2 + 2039546 commit f7434ea
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.django
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

ANTHROPIC_API_KEY=
OPENAI_API_KEY=
OPENAI_MODEL=
LLM_MAX_TOKENS=1024

# === Development ===
Expand Down
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

ANTHROPIC_API_KEY=
OPENAI_API_KEY=
OPENAI_API_KEY=
LLM_MAX_TOKENS=1024

# === Development ===
Expand Down
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

ANTHROPIC_API_KEY=
OPENAI_API_KEY=
OPENAI_MODEL=
LLM_MAX_TOKENS=1024

# === AI ===
Expand Down
1 change: 1 addition & 0 deletions core_api/src/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def get_llm(env: Annotated[Settings, Depends(get_env)]) -> ChatLiteLLM:
streaming=True,
openai_key=env.openai_api_key,
callbacks=[logger_callback],
model=env.openai_model,
)
elif env.azure_openai_api_key is not None:
log.info("Creating Azure LLM Client")
Expand Down
1 change: 1 addition & 0 deletions redbox-core/redbox/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class Settings(BaseSettings):

anthropic_api_key: str | None = None
openai_api_key: str | None = None
openai_model: str | None = None
azure_openai_api_key: str | None = None
azure_openai_endpoint: str | None = None

Expand Down

0 comments on commit f7434ea

Please sign in to comment.