Update utils.py
Browse files
utils.py
CHANGED
@@ -538,6 +538,12 @@ def wait_on_run(run, thread, client):
|
|
538 |
time.sleep(0.5)
|
539 |
return run
|
540 |
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
########################################
|
542 |
#Assistant für Websuche anlgen
|
543 |
def openai_assistant_suche(client):
|
|
|
538 |
time.sleep(0.5)
|
539 |
return run
|
540 |
|
541 |
+
########################################
|
542 |
+
# Tavility Search Machine
|
543 |
+
def tavily_search(query):
|
544 |
+
search_result = tavily_client.get_search_context(query, search_depth="advanced", max_tokens=8000)
|
545 |
+
return search_result
|
546 |
+
|
547 |
########################################
|
548 |
#Assistant für Websuche anlgen
|
549 |
def openai_assistant_suche(client):
|