Skip to content

Update google provider types#348

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
update-google-provider-types-49c63f3d-29244840262
Open

Update google provider types#348
github-actions[bot] wants to merge 1 commit into
mainfrom
update-google-provider-types-49c63f3d-29244840262

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of Lingua provider types.

Provider: google

Feedback: comment /bt good or /bt bad to log review feedback to the Braintrust trace.

Validation

  • ./pipelines/generate-provider-types.sh google: failure
  • Claude repair pass: failure
  • Retry ./pipelines/generate-provider-types.sh google: failure
  • make generate-types: failure
  • Braintrust workflow trace: success
  • Claude integration review: failure
  • Post-review make generate-types: failure
  • cargo fmt --all: success
  • cargo build --all-features: failure
  • cargo clippy --all-targets --all-features -- -D warnings: failure
  • make typed-boundary-check: success
  • cargo test -p coverage-report --test cross_provider_test cross_provider_transformations_have_no_unexpected_failures: failure

This PR is created even when validation fails so the generated update and repair attempt are available for manual follow-up.

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

Copy link
Copy Markdown

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: b6b114edb6

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

Comment on lines +1305 to +1306
#[serde(rename = "NONE")]
ModeNone,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve the None variant or update callers

Renaming this variant to ModeNone leaves the Google converter and tests still matching/constructing FunctionCallingConfigMode::None in crates/lingua/src/providers/google/convert.rs, including the tool-choice-none path. Since the google feature is enabled by default, those references no longer resolve and the crate will not compile until the callers are updated or the generated variant name remains None.

Useful? React with 👍 / 👎.

Comment on lines +1037 to +1038
#[serde(rename = "STRING")]
TypeString,

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 accepting lowercase string schema types

This replacement drops the previous #[serde(alias = "string")], so deserializing a Google Schema from standard JSON Schema with {"type":"string"} now fails only for string fields while the other lowercase types still work. The generator explicitly adds these aliases so typed Google schemas can accept both Google uppercase values and OpenAI/JSON-Schema lowercase values; add the alias back alongside the STRING rename.

Useful? React with 👍 / 👎.

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