-
Notifications
You must be signed in to change notification settings - Fork 925
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
Conversation
* Adding LanguageModel types. These are based off https://github.com/webmachinelearning/prompt-api?tab=readme-ov-file#full-api-surface-in-web-idl * Adding LanguageModel types. * Remove bunch of exports * yarn formatted * after lint
|
Vertex AI Mock Responses Check
|
/** | ||
* Optional. Specifies advanced params for on-device inference. | ||
*/ | ||
onDeviceParams?: AILanguageModelCreateOptionsWithSystemPrompt; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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`); |
There was a problem hiding this comment.
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.
* Adding LanguageModel types. These are based off https://github.com/webmachinelearning/prompt-api?tab=readme-ov-file#full-api-surface-in-web-idl * Adding LanguageModel types. * Remove bunch of exports * yarn formatted * after lint
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
If not, go file an issue about this before creating a pull request to discuss.
Testing
API Changes
us make Firebase APIs better, please propose your change in an issue so that we
can discuss it together.