We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f461b6f commit f7dc812Copy full SHA for f7dc812
chatlas/_provider_anthropic.py
@@ -445,8 +445,11 @@ def _structured_tool_call(**kwargs: Any):
445
return kwargs_full
446
447
def stream_text(self, chunk) -> Optional[str]:
448
- if chunk.type == "content_block_delta" and chunk.delta.type == "text_delta":
449
- return chunk.delta.text
+ if chunk.type == "content_block_delta":
+ if chunk.delta.type == "text_delta":
450
+ return chunk.delta.text
451
+ if chunk.delta.type == "thinking_delta":
452
+ return chunk.delta.thinking
453
return None
454
455
def stream_merge_chunks(self, completion, chunk):
0 commit comments