Skip to content

Commit 193a931

Browse files
authored
Merge #4 Add model vendor names in frontend
Set Bedrock Claude 3.7 as default
2 parents 7ad1e61 + b3b51a5 commit 193a931

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cx-agent-backend/src/infrastructure/adapters/langgraph_agent_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ def _create_agent(self, agent_type: AgentType, model: str) -> any:
3939
"""Create agent with specific model."""
4040
from langchain_openai import ChatOpenAI
4141

42+
# Remove vendor prefix if present (format: vendor/model)
43+
processed_model = model.split("/", 1)[-1] if "/" in model else model
44+
4245
# Create LLM with the specified model
4346
llm = ChatOpenAI(
4447
api_key=self._llm_service.api_key,
4548
base_url=self._llm_service.base_url,
46-
model=model,
49+
model=processed_model,
4750
temperature=0.7,
4851
streaming=True,
4952
)

cx-agent-frontend/src/components/chat.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ def render_sidebar():
7575
model = st.selectbox(
7676
"Model",
7777
options=[
78-
"gpt-4o-mini",
79-
"gpt-4o",
78+
"bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",
79+
"openai/gpt-4o-mini",
80+
"openai/gpt-4o",
8081
"bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0",
8182
"bedrock/anthropic.claude-3-5-haiku-20241022-v1:0",
8283
],

0 commit comments

Comments
 (0)