Skip to content

Update google provider types#307

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
update-google-provider-types-95c16a04-27544879024
Open

Update google provider types#307
github-actions[bot] wants to merge 1 commit into
mainfrom
update-google-provider-types-95c16a04-27544879024

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: success
  • make generate-types: success
  • Braintrust workflow trace: success
  • Claude integration review: success
  • Post-review make generate-types: success
  • cargo fmt --all: success
  • cargo build --all-features: success
  • cargo clippy --all-targets --all-features -- -D warnings: success
  • make typed-boundary-check: success
  • cargo test -p coverage-report --test cross_provider_test cross_provider_transformations_have_no_unexpected_failures: success

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

ℹ️ 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 +1221 to +1223
| GoogleFinishReason::ImageRecitation
| GoogleFinishReason::ImageProhibitedContent
| GoogleFinishReason::Language

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 Preserve exact Google finish reasons

For a Google response whose candidate.finishReason is IMAGE_RECITATION, IMAGE_PROHIBITED_CONTENT, or LANGUAGE, this collapses the typed provider value to ContentFilter. When that UniversalResponse is serialized back to Google, response_from_universal calls to_provider_string(ProviderFormat::Google), which emits SAFETY for every ContentFilter, so a Google→universal→Google round trip no longer preserves these exact provider finish reasons; before this change they fell through as Other(...) and round-tripped as the original string. If exact provider response metadata matters, keep these as Other or carry the original value separately.

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