modifies orchestrator,add code_exec tool, openai_chat (later we add chat)
Browse files
openai_pandasai_service.py
CHANGED
@@ -260,6 +260,7 @@ def openai_chart(csv_url: str, question: str):
|
|
260 |
answer = df.chat(question + instructions)
|
261 |
|
262 |
if process_answer(answer):
|
|
|
263 |
return "Chart not generated"
|
264 |
return answer
|
265 |
|
|
|
260 |
answer = df.chat(question + instructions)
|
261 |
|
262 |
if process_answer(answer):
|
263 |
+
print("OpenAI API error", answer)
|
264 |
return "Chart not generated"
|
265 |
return answer
|
266 |
|