mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +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:
|
try:
|
||||||
reasoning_content = completion.choices[0].message.reasoning_content
|
reasoning_content = completion.choices[0].message.reasoning_content
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
reasoning_content = None
|
try:
|
||||||
|
reasoning_content = completion.choices[0].message.reasoning
|
||||||
|
except AttributeError:
|
||||||
|
reasoning_content = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.partial_response_content = completion.choices[0].message.content or ""
|
self.partial_response_content = completion.choices[0].message.content or ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue