Enrique Cardoza commited on
Commit
bbfbbda
·
1 Parent(s): f1bc3b0

refactor(chat): remove redundant tool decision feedback

Browse files

- Remove unnecessary user notification when tool isn't needed
- Streamline chat flow by eliminating extra message about URL not requiring transcription
- Improve user experience by reducing informational messages
- Allow the main Claude response to handle all non-tool cases directly

Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -378,14 +378,6 @@ def chat_with_tools(user_message, history, user_groq_api_key, user_anthropic_api
378
  ))
379
  yield history
380
  return
381
- else:
382
- # Tool decision was false, inform user
383
- history.append(ChatMessage(
384
- role="assistant",
385
- content="I don't think this URL requires audio transcription. Let me respond to your message directly.",
386
- metadata={"title": "ℹ️ Info", "status": "done"}
387
- ))
388
- yield history
389
 
390
  # 4. Claude response phase - for regular chat or when tool isn't needed
391
  try:
 
378
  ))
379
  yield history
380
  return
 
 
 
 
 
 
 
 
381
 
382
  # 4. Claude response phase - for regular chat or when tool isn't needed
383
  try: