Merge branch 'main' into json-coders

This commit is contained in:
Paul Gauthier 2024-08-14 10:50:23 -07:00
commit 5c24a06dc8
15 changed files with 902 additions and 259 deletions

View file

@ -1244,6 +1244,7 @@ class Coder:
self.io.log_llm_history("TO LLM", format_messages(messages))
completion = None
try:
hash_object, completion = send_completion(
model.name,
@ -1263,6 +1264,8 @@ class Coder:
except KeyboardInterrupt as kbi:
self.keyboard_interrupt()
raise kbi
except Exception as e:
self.io.tool_error(f"Error during API call: {str(e)}")
finally:
self.io.log_llm_history(
"LLM RESPONSE",