library · inferred from evidence
anthropic-sdk-python
The Python SDK for interacting with Anthropic's API, referenced in the issue thread.
- stream.get_final_message() does not return the correct usage of output_tokens
How to fix 'stream.get_final_message() does not return the correct usage of output_tokens' in Anthropic, straight from the verified resolution in gh:anthropics/anthropic-sdk-python#424. Root cause plus what to change.
- API client lacks a messages attribute
How to fix 'API client lacks a messages attribute' in Anthropic, straight from the verified resolution in gh:anthropics/anthropic-sdk-python#352. Root cause plus what to change.
- Exception: EOF while parsing a value at line 1 column 0
How to fix 'Exception: EOF while parsing a value at line 1 column 0' in Anthropic, straight from the verified resolution in gh:anthropics/anthropic-sdk-python#13. Root cause plus what to change.
- Structured outputs: "compiled grammar is too large" error needs better documentation and higher limits for complex schem
How to fix 'Structured outputs: "compiled grammar is too large" error needs better documentation and higher limits for complex schem' in Anthropic, straight from the verified resolution in gh:anthropics/anthropic-sdk-python#1185. Root cause
- Structured outputs plus thinking plus tools: thinking block instead of tool_use, or a second JSON object appended
Teaches the verified fix from a real anthropic support thread: structured outputs plus thinking plus tools: thinking block instead of tool_use, or a second JSON object appended