Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ AZURE_API_BASE=https://fake-openai.example.com
AZURE_API_VERSION=0000-00-00-preview

LLM_MODEL_NAME=fake-llm-model
LLM_TEMPERATURE=0.7

##### POSTGRES #########
# PG_HOST=fake-prod-postgres.example.com
Expand Down
1 change: 1 addition & 0 deletions k8s/welearn-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ config:
AZURE_API_BASE: "https://welearn-openai.openai.azure.com/openai/"
AZURE_API_VERSION: "2024-08-01-preview"
LLM_MODEL_NAME: gpt-oss-120b
LLM_TEMPERATURE: 0.2
MISTRAL_LLM_MODEL_NAME: mistral-small-latest
QDRANT_HOST: "http://qdrant.qdrant"
QDRANT_PORT: "6333"
Expand Down
1 change: 1 addition & 0 deletions src/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def get_api_version(self) -> dict:
AZURE_API_VERSION: str

LLM_MODEL_NAME: str
LLM_TEMPERATURE: float
ENV: str

# PG
Expand Down
1 change: 1 addition & 0 deletions src/app/shared/infra/abst_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ async def _create_agent(
settings = get_settings()
agent_model = ChatMistralAI(
model_name=settings.MISTRAL_LLM_MODEL_NAME,
temperature=settings.LLM_TEMPERATURE,
)

self.agent_executor = create_agent(
Expand Down
1 change: 1 addition & 0 deletions src/app/tutor/service/tutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def init_chat_model(settings) -> None:
if chat_model is None:
chat_model = ChatMistralAI(
model_name=settings.MISTRAL_LLM_MODEL_NAME,
temperature=settings.LLM_TEMPERATURE,
)


Expand Down
Loading