modifies orchestrator,add code_exec tool, openai_chat (later we add chat)
Browse files
orchestrator_functions.py
CHANGED
@@ -612,6 +612,7 @@ async def csv_chart(csv_url: str, query: str):
|
|
612 |
|
613 |
except Exception as openai_error:
|
614 |
logger.info(f"OpenAI failed ({str(openai_error)}), trying raw Groq...")
|
|
|
615 |
# --- 2. Second Attempt: Raw Groq ---
|
616 |
try:
|
617 |
groq_result = await asyncio.to_thread(groq_chart, csv_url, query)
|
|
|
612 |
|
613 |
except Exception as openai_error:
|
614 |
logger.info(f"OpenAI failed ({str(openai_error)}), trying raw Groq...")
|
615 |
+
return "Sorry, I couldn't generate a chart..."
|
616 |
# --- 2. Second Attempt: Raw Groq ---
|
617 |
try:
|
618 |
groq_result = await asyncio.to_thread(groq_chart, csv_url, query)
|