mirror of
https://github.com/usestrix/strix.git
synced 2026-10-15 04:18:10 +00:00
Merge 6cf2865eb5 into ca20626f84
This commit is contained in:
commit
a6d684a294
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ def _extract_text(response: ModelResponse) -> str:
|
|||
parts.extend(
|
||||
chunk.text
|
||||
for chunk in item.content
|
||||
if isinstance(chunk, ResponseOutputText) and chunk.text
|
||||
if isinstance(chunk, ResponseOutputText) and chunk.type == "output_text" and chunk.text
|
||||
)
|
||||
return "".join(parts)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue