library · inferred from evidence
xai-sdk-python
The SDK mentioned in the context of the bug.
- xAI structured output corrupts Unicode for non-ASCII enum values
You were right that it is server-side: the team reproduced it at the API level and traced it to underlying infra, not the SDK. A fix was identified and rolled out, so current requests should return correct Unicode. As a workaround in the me
- xAI Batch API structured outputs: pass a Pydantic model as response_format
You can already do this. Pass a Pydantic BaseModel class as the response_format parameter of chat.create, then use chat.append followed by chat.sample(), and the sampled response comes back as a JSON string that adheres to your schema. The
- xAI SDK local MCP server error: Server URL resolves to internal IP
Local MCP servers are not supported through the mcp helper function, which is why you get that internal IP error. The docs are being clarified on this. You can still use tools from a locally running MCP server, but you have to write a bit m
- xAI chat.parse() structured outputs not working with grok-4
That was a bug on the API side, not in the SDK or your code. Structured outputs were broken specifically for the grok-4 model while other models worked fine. It has been fixed server-side, so the same chat.parse() code that failed before wo