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
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AZURE_TENANT_ID=
AZURE_OPENAI_KEY=
# Needed for OpenAI.com:
OPENAICOM_KEY=YOUR-OPENAI-API-KEY
OPENAICOM_CHAT_MODEL=gpt-3.5-turbo
OPENAICOM_CHAT_MODEL=gpt-5.4
OPENAICOM_EMBED_MODEL=text-embedding-3-large
OPENAICOM_EMBED_DIMENSIONS=1024
OPENAICOM_EMBEDDING_COLUMN=embedding_3l
Expand Down
2 changes: 1 addition & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ var webAppEnv = union(azureOpenAIKeyEnv, openAIComKeyEnv, [
}
{
name: 'OPENAICOM_CHAT_MODEL'
value: openAIChatHost == 'openaicom' ? 'gpt-3.5-turbo' : ''
value: openAIChatHost == 'openaicom' ? 'gpt-5.4' : ''
}
{
name: 'OPENAI_EMBED_HOST'
Expand Down
2 changes: 1 addition & 1 deletion src/backend/fastapi_app/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def common_parameters():
openai_embed_model = os.getenv("OLLAMA_EMBED_MODEL") or "nomic-embed-text"
else:
openai_chat_deployment = None
openai_chat_model = os.getenv("OPENAICOM_CHAT_MODEL") or "gpt-3.5-turbo"
openai_chat_model = os.getenv("OPENAICOM_CHAT_MODEL") or "gpt-5.4"
return FastAPIAppContext(
openai_chat_model=openai_chat_model,
openai_embed_model=openai_embed_model,
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def mock_session_env_openai(monkeypatch_session):
monkeypatch_session.setenv("OPENAI_CHAT_HOST", "openai")
monkeypatch_session.setenv("OPENAI_EMBED_HOST", "openai")
monkeypatch_session.setenv("OPENAICOM_KEY", "fakekey")
monkeypatch_session.setenv("OPENAICOM_CHAT_MODEL", "gpt-3.5-turbo")
monkeypatch_session.setenv("OPENAICOM_CHAT_MODEL", "gpt-5.4")
monkeypatch_session.setenv("OPENAICOM_EMBED_MODEL", "text-embedding-3-large")
monkeypatch_session.setenv("OPENAICOM_EMBED_DIMENSIONS", "1024")
monkeypatch_session.setenv("OPENAICOM_EMBEDDING_COLUMN", "embedding_3l")
Expand Down
9 changes: 8 additions & 1 deletion tests/test_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@ async def test_get_common_parameters_ollama(mock_session_env_ollama):
@pytest.mark.asyncio
async def test_get_common_parameters_openai(mock_session_env_openai):
result = await common_parameters()
assert result.openai_chat_model == "gpt-3.5-turbo"
assert result.openai_chat_model == "gpt-5.4"
assert result.openai_embed_model == "text-embedding-3-large"
assert result.openai_embed_dimensions == 1024
assert result.openai_chat_deployment is None
assert result.openai_embed_deployment is None


@pytest.mark.asyncio
async def test_get_common_parameters_openai_default_chat_model(mock_session_env_openai, monkeypatch):
monkeypatch.delenv("OPENAICOM_CHAT_MODEL", raising=False)
result = await common_parameters()
assert result.openai_chat_model == "gpt-5.4"


@pytest.mark.asyncio
async def test_get_azure_credential(mock_session_env, mock_azure_credential):
result = await get_azure_credential()
Expand Down