Fix AI chatbot role mapping, add markdown formatting, update system prompts, and handle OpenRouter API errors

This commit is contained in:
Atharv1705
2026-07-20 12:14:58 +05:30
parent 756547a22c
commit c2e22902c8
168 changed files with 11556 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
Traceback (most recent call last):
File "C:\Users\abhil\Desktop\Bookkeepro\Bookkeep\services/api\app\routers\chatbot.py", line 204, in ask_chatbot
return data['choices'][0]['message']
~~~~^^^^^^^^^^^
KeyError: 'choices'