fix(models): accept int or str for TaskResult.error_code #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch ":fix/error-code-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The midapi.ai API returns integer error codes (e.g. 400) not strings. Pydantic validation was failing when parsing error responses.
Tested: Image generation now works through the MCP proxy HTTP wrapper.