Skip to content

Erikeldridge vertex api 2 #8929

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

Closed
wants to merge 22 commits into from
Closed

Erikeldridge vertex api 2 #8929

wants to merge 22 commits into from

Conversation

gsiddh
Copy link

@gsiddh gsiddh commented Apr 15, 2025

Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:

Discussion

  • Read the contribution guidelines (CONTRIBUTING.md).
  • If this has been discussed in an issue, make sure to link to the issue here.
    If not, go file an issue about this before creating a pull request to discuss.

Testing

  • Make sure all existing tests in the repository pass after your change.
  • If you fixed a bug or added a feature, add a new test to cover your code.

API Changes

  • At this time we cannot accept changes that affect the public API. If you'd like to help
    us make Firebase APIs better, please propose your change in an issue so that we
    can discuss it together.

@gsiddh gsiddh requested review from a team as code owners April 15, 2025 22:46
Copy link

changeset-bot bot commented Apr 15, 2025

⚠️ No Changeset found

Latest commit: 31a46a1

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

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

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

/**
* Optional. Specifies advanced params for on-device inference.
*/
onDeviceParams?: AILanguageModelCreateOptionsWithSystemPrompt;
Copy link

@erikeldridge erikeldridge Apr 15, 2025

Choose a reason for hiding this comment

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

I think we need to update AILanguageModelCreateOptionsWithSystemPrompt to LanguageModelCreateOptions now that we're using the hand-written type rather than the imported package.

"@rollup/plugin-json": "6.1.0",
"@types/dom-chromium-ai": "0.0.6",

Choose a reason for hiding this comment

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

We need to remove this dep

@@ -27,8 +27,10 @@ const writeFile = promisify(_writeFile);

const {
workspaces: rawWorkspaces
}: { workspaces: string[] } = require(`${root}/package.json`);
const workspaces = rawWorkspaces.map(workspace => `${root}/${workspace}`);
}: { workspaces: { packages: string[] } } = require(`${root}/package.json`);
Copy link

@erikeldridge erikeldridge Apr 15, 2025

Choose a reason for hiding this comment

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

These changes are from #8920 . I pulled the branch from that PR into the API change ("#⁠1") in anticipation of using the type package. Now that we're not using that package, we should revert those changes.

gsiddh and others added 5 commits April 15, 2025 16:46
@gsiddh gsiddh closed this Apr 16, 2025
@gsiddh gsiddh deleted the erikeldridge-vertex-api-2 branch April 16, 2025 22:30
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.

3 participants