Skip to content

Commit

Permalink
Merge pull request #32 from video-db/27-reasoning-engine-error-state-…
Browse files Browse the repository at this point in the history
…is-missing

fix: handle llm error, bump videodb chat
  • Loading branch information
ashish-spext authored Oct 29, 2024
2 parents 03c39d8 + 3364d9a commit a75d6f3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion backend/director/core/reasoning.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,18 @@ def step(self):
logger.info(f"LLM Response: {llm_response}")

if not llm_response.status:
# TODO: Handle llm error
self.output_message.content.append(
TextContent(
text=llm_response.content,
status=MsgStatus.error,
status_message="Error in reasoning",
agent_name="assistant",
)
)
self.output_message.actions.append("Failed to reason the message")
self.output_message.status = MsgStatus.error
self.output_message.publish()
self.stop()
break

if llm_response.tool_calls:
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@videodb/chat-vue": "^0.0.5",
"@videodb/chat-vue": "~0.0.6",
"@videodb/player-vue": "^0.0.2",
"axios": "^1.7.5",
"dayjs": "^1.11.13",
Expand Down

0 comments on commit a75d6f3

Please sign in to comment.