Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
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 src/backend/config/default_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DEFAULT_AGENT_ID = "default"
DEFAULT_DEPLOYMENT = CohereDeployment.name()
DEFAULT_MODEL = "command-r-plus"
DEFAULT_MODEL = "command-r-plus-08-2024"

def get_default_agent() -> AgentPublic:
return AgentPublic(
Expand Down
2 changes: 1 addition & 1 deletion src/backend/routers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_default_deployment_model(session: DBSessionDep):
(
model
for model in deployment_db.models
if model.name == 'command-r-plus'
if model.name == 'command-r-plus-08-2024'
),
None,
)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/schemas/cohere_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CohereChatRequest(BaseChatRequest):
""",
)
model: Optional[str] = Field(
"command-r-plus",
"command-r-plus-08-2024",
title="Model",
description="The model to use for generating the response.",
)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ def mock_available_model_deployments(mock_event_stream: list[dict]):
def mock_cohere_list_models():
with patch(
"backend.model_deployments.cohere_platform.CohereDeployment.list_models",
return_value=["command", "command-r", "command-r-plus", "command-light-nightly"]
return_value=["command", "command-r", "command-r-plus-08-2024", "command-light-nightly"]
) as mock:
yield mock
20 changes: 10 additions & 10 deletions src/backend/tests/integration/routers/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_create_agent(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
"tools": [Tool.Calculator.value.ID, Tool.Search_File.value.ID, Tool.Read_File.value.ID],
}
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_create_agent_with_tool_metadata(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
"tools": [Tool.Google_Drive.value.ID, Tool.Search_File.value.ID],
"tools_metadata": [
Expand Down Expand Up @@ -127,7 +127,7 @@ def test_create_agent_missing_non_required_fields(
) -> None:
request_json = {
"name": "test agent",
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
}

Expand Down Expand Up @@ -207,7 +207,7 @@ def test_create_agent_missing_name(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
}
response = session_client.post(
Expand Down Expand Up @@ -242,7 +242,7 @@ def test_create_agent_missing_deployment(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
}
response = session_client.post(
"/v1/agents", json=request_json, headers={"User-Id": user.id}
Expand All @@ -256,7 +256,7 @@ def test_create_agent_missing_user_id_header(
) -> None:
request_json = {
"name": "test agent",
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
}
response = session_client.post("/v1/agents", json=request_json)
Expand All @@ -273,7 +273,7 @@ def test_create_agent_invalid_deployment(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": "not a real deployment",
}

Expand All @@ -294,7 +294,7 @@ def test_create_agent_deployment_not_in_db(
"description": "test description",
"preamble": "test preamble",
"temperature": 0.5,
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
}
cohere_deployment = deployment_crud.get_deployment_by_name(session, CohereDeployment.name())
Expand All @@ -308,15 +308,15 @@ def test_create_agent_deployment_not_in_db(
deployment_models_list = [model.name for model in deployment_models]
assert response.status_code == 200
assert cohere_deployment
assert "command-r-plus" in deployment_models_list
assert "command-r-plus-08-2024" in deployment_models_list


def test_create_agent_invalid_tool(
session_client: TestClient, session: Session, user: User,
) -> None:
request_json = {
"name": "test agent",
"model": "command-r-plus",
"model": "command-r-plus-08-2024",
"deployment": CohereDeployment.name(),
"tools": [Tool.Calculator.value.ID, "fake_tool"],
}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/unit/factories/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class Meta:

deployment = factory.SubFactory(DeploymentFactory)
deployment_id = factory.SelfAttribute("deployment.id")
name = "command-r-plus"
name = "command-r-plus-08-2024"
cohere_name = factory.Faker("name")
description = factory.Faker("text")
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FileAccept } from '@/components/UI';

export const DEFAULT_CONVERSATION_NAME = 'New Conversation';
export const DEFAULT_AGENT_MODEL = 'command-r-plus';
export const DEFAULT_AGENT_MODEL = 'command-r-plus-08-2024';
export const DEFAULT_AGENT_ID = 'default';
export const DEFAULT_AGENT_TEMPERATURE = 0.3;
export const DEFAULT_TYPING_VELOCITY = 35;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/coral_web/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const DEFAULT_TYPING_VELOCITY = 35;

export const DEPLOYMENT_COHERE_PLATFORM = 'Cohere Platform';
export const DEPLOYMENT_SINGLE_CONTAINER = 'Single Container';
export const DEFAULT_AGENT_MODEL = 'command-r-plus';
export const DEFAULT_AGENT_MODEL = 'command-r-plus-08-2024';
export const DEFAULT_PREAMBLE =
"## Task And Context\nYou help people answer their questions and other requests interactively. You will be asked a very wide array of requests on all kinds of topics. You will be equipped with a wide range of search engines or similar tools to help you, which you use to research your answer. You should focus on serving the user's needs as best you can, which will be wide-ranging.\n\n## Style Guide\nUnless the user asks for a different style of answer, you should answer in full sentences, using proper grammar and spelling.";

Expand Down