Skip to content

Commit

Permalink
Fix agent bug (#658)
Browse files Browse the repository at this point in the history
CHange
  • Loading branch information
BeatrixCohere authored Aug 14, 2024
1 parent 3b89f69 commit e8d0ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/routers/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ async def generate_title(
agent_id = conversation.agent_id if conversation.agent_id else None

if agent_id:
agent = agent_crud.get_agent_by_id(session, agent_id)
agent = agent_crud.get_agent_by_id(session, agent_id, user_id)
agent_schema = Agent.model_validate(agent)
ctx.with_agent(agent_schema)
ctx.with_metrics_agent(agent_to_metrics_agent(agent))
Expand Down

0 comments on commit e8d0ceb

Please sign in to comment.