mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 20:25:01 +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_func_err = None
|
||||||
show_content_err = None
|
show_content_err = None
|
||||||
try:
|
try:
|
||||||
self.partial_response_function_call = (
|
if completion.choices[0].message.tool_calls:
|
||||||
completion.choices[0].message.tool_calls[0].function
|
self.partial_response_function_call = (
|
||||||
)
|
completion.choices[0].message.tool_calls[0].function
|
||||||
dump(str(self.partial_response_function_call))
|
)
|
||||||
|
dump(str(self.partial_response_function_call))
|
||||||
except AttributeError as func_err:
|
except AttributeError as func_err:
|
||||||
dump(func_err)
|
dump(func_err)
|
||||||
show_func_err = func_err
|
show_func_err = func_err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue