Skip to content

Drop empty text parts when parsing the model's response #6652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Jan 28, 2025

Empty text parts go from a nuance when processed, to an exception when send to the backend. To prevent this issue, we are dropping them when parsing the response from the server.

Empty text parts go from a nuance when processed, to an exception when
send to the backend. To prevent this issue, we are dropping them when
parsing the response from the server.
@rlazo rlazo requested review from davidmotson and daymxn January 28, 2025 23:32
Copy link
Contributor

github-actions bot commented Jan 28, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v5.3

@rlazo rlazo enabled auto-merge (squash) January 28, 2025 23:32
@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

Copy link
Contributor

Test Results

 20 files   -  1 014   20 suites   - 1 014   12s ⏱️ - 34m 16s
113 tests  -  5 775  113 ✅  -  5 753  0 💤  - 22  0 ❌ ±0 
226 runs   - 11 613  226 ✅  - 11 569  0 💤  - 44  0 ❌ ±0 

Results for commit 36385d2. ± Comparison against base commit b17d041.

This pull request removes 5775 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest ‑ create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
…

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • firebase-vertexai

    TypeBase (b17d041)Merge (8109f08)Diff
    aar477 kB477 kB+469 B (+0.1%)
    apk (release)9.15 MB9.15 MB+252 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/nizEBS5VnB.html

@rlazo rlazo merged commit 65b23aa into main Jan 28, 2025
31 of 32 checks passed
@rlazo rlazo deleted the rl.drop.empty.text branch January 28, 2025 23:47
@daymxn daymxn mentioned this pull request Jan 29, 2025
daymxn added a commit that referenced this pull request Jan 29, 2025
Adds the changelog entry for #6652
daymxn added a commit that referenced this pull request Jan 30, 2025
Adds the changelog entry for #6652
@firebase firebase locked and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants