mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Add fallback for reasoning_content attribute access
This commit is contained in:
parent
f5a5b85e9d
commit
a405063385
1 changed files with 4 additions and 1 deletions
|
@ -1712,7 +1712,10 @@ class Coder:
|
|||
try:
|
||||
reasoning_content = completion.choices[0].message.reasoning_content
|
||||
except AttributeError:
|
||||
reasoning_content = None
|
||||
try:
|
||||
reasoning_content = completion.choices[0].message.reasoning
|
||||
except AttributeError:
|
||||
reasoning_content = None
|
||||
|
||||
try:
|
||||
self.partial_response_content = completion.choices[0].message.content or ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue