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 2e539ac commit 21b1481Copy full SHA for 21b1481
chatlas/_provider_anthropic.py
@@ -390,8 +390,11 @@ def _structured_tool_call(**kwargs: Any):
390
return kwargs_full
391
392
def stream_text(self, chunk) -> Optional[str]:
393
- if chunk.type == "content_block_delta" and chunk.delta.type == "text_delta":
394
- return chunk.delta.text
+ if chunk.type == "content_block_delta":
+ if chunk.delta.type == "text_delta":
395
+ return chunk.delta.text
396
+ if chunk.delta.type == "thinking_delta":
397
+ return chunk.delta.thinking
398
return None
399
400
def stream_merge_chunks(self, completion, chunk):
0 commit comments