Update openai,anthropic,google provider types#249
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec687e0238
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "Codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "Codex (@codex) address that feedback".
| #[ts(type = "unknown")] | ||
| pub size: Option<serde_json::Value>, |
There was a problem hiding this comment.
Restore string typing for ImageGenTool.size
ImageGenTool.size was widened from Option<String> to Option<serde_json::Value>, but the schema docs on this field still define it as WIDTHxHEIGHT string values (plus known string presets). This removes compile-time validation and allows non-string payloads (e.g., objects/numbers) to be serialized into tools[].size, which can now pass local typing but fail at provider request time. Keeping this field typed as a string (or a stricter string wrapper) preserves the provider contract and avoids avoidable runtime request errors.
Useful? React with 👍 / 👎.
Automated update of Lingua provider types.
Providers:
openai,anthropic,googleValidation
./pipelines/generate-provider-types.shfor each requested providermake generate-typescargo fmt --allcargo build --all-featurescargo clippy --all-targets --all-features -- -D warnings