Skip to content

Update openai,anthropic,google provider types#248

Closed
github-actions[bot] wants to merge 1 commit into
mainfrom
update-provider-types
Closed

Update openai,anthropic,google provider types#248
github-actions[bot] wants to merge 1 commit into
mainfrom
update-provider-types

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated update of Lingua provider types.

Providers: openai,anthropic,google

Validation

  • Ran ./pipelines/generate-provider-types.sh for each requested provider
  • Ran cargo fmt --all
  • Ran cargo build --all-features
  • Ran cargo clippy --all-targets --all-features -- -D warnings

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d25af23938

ℹ️ 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".

#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<String>,
#[ts(type = "unknown")]
pub size: Option<serde_json::Value>,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep image tool size typed as string

Changing ImageGenTool.size from Option<String> to Option<serde_json::Value> removes compile-time validation and allows non-string payloads (for example numbers or objects) to serialize into OpenAI requests, which the API schema still describes as string-valued sizes. This is a type-safety regression introduced in this commit, and it can produce runtime request failures that were previously prevented by the Rust type system.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is generated I don't think it needs updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant