mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
avoid deref missing func
This commit is contained in:
parent
94a26019bd
commit
2eb1946909
1 changed files with 5 additions and 4 deletions
|
@ -1291,10 +1291,11 @@ class Coder:
|
|||
show_func_err = None
|
||||
show_content_err = None
|
||||
try:
|
||||
self.partial_response_function_call = (
|
||||
completion.choices[0].message.tool_calls[0].function
|
||||
)
|
||||
dump(str(self.partial_response_function_call))
|
||||
if completion.choices[0].message.tool_calls:
|
||||
self.partial_response_function_call = (
|
||||
completion.choices[0].message.tool_calls[0].function
|
||||
)
|
||||
dump(str(self.partial_response_function_call))
|
||||
except AttributeError as func_err:
|
||||
dump(func_err)
|
||||
show_func_err = func_err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue