Skip to content

VinF Hybrid Inference: disable multi-turn support #8973

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
Apr 25, 2025

Conversation

erikeldridge
Copy link

@erikeldridge erikeldridge commented Apr 24, 2025

Problem statement

We can't differentiate roles until Chrome supports the LanguageModelMessage type.

Multi-turn requests differentiate turns by role, so without roles, we can't support multi-turn.

We can't throw to indicate a lack of support, like we can with countToken, because ChromeAdapter integrates below
ChatSession.

Bug: b/413402604

Proposal

This change indicates a lack of support for multi-turn requests by updating the request validator to fail if a request contains non-"user" roles. We can relax this once LanguageModelMessage is released.

@erikeldridge erikeldridge requested a review from a team as a code owner April 24, 2025 17:48
Copy link

changeset-bot bot commented Apr 24, 2025

⚠️ No Changeset found

Latest commit: 5c0e70f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • @firebase/vertexai

    TypeBase (dd0c4b1)Merge (4774108)Diff
    browser46.0 kB46.0 kB-4 B (-0.0%)
    main47.1 kB47.1 kB-4 B (-0.0%)
    module46.0 kB46.0 kB-4 B (-0.0%)
  • firebase

    TypeBase (dd0c4b1)Merge (4774108)Diff
    firebase-vertexai.js36.1 kB36.1 kB-4 B (-0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

Size Analysis Report 1

Affected Products

  • @firebase/vertexai

    • getGenerativeModel

      Size

      TypeBase (dd0c4b1)Merge (4774108)Diff
      size26.1 kB26.1 kB-4 B (-0.0%)
      size-with-ext-deps45.1 kB45.1 kB-4 B (-0.0%)

Test Logs

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

@erikeldridge erikeldridge merged commit 6c60de5 into vaihi-exp-google-ai Apr 25, 2025
31 of 34 checks passed
@erikeldridge erikeldridge deleted the erikeldridge-vertex-chat branch April 25, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants