tdziwok commited on
Commit
0ba447b
·
1 Parent(s): ddb1e55

do not try to do the youtube questions

Browse files
Files changed (1) hide show
  1. agent.py +3 -0
agent.py CHANGED
@@ -25,6 +25,9 @@ class BasicAgent:
25
 
26
  def __call__(self, question: str, attachment_url=None) -> str:
27
  print(f"Agent received question (first 50 chars): {question[:50]}...")
 
 
 
28
 
29
  prompt = question
30
  if attachment_url:
 
25
 
26
  def __call__(self, question: str, attachment_url=None) -> str:
27
  print(f"Agent received question (first 50 chars): {question[:50]}...")
28
+ if "https://www.youtube.com/" in question:
29
+ # let's not waste LLM credits and surrender honourably
30
+ return "No answer (youtube integration not implemented yet)"
31
 
32
  prompt = question
33
  if attachment_url: