-
Notifications
You must be signed in to change notification settings - Fork 926
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
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8319ae9
Vaihi add langmodel types. (#8927)
gsiddh 556c348
Define HybridParams
erikeldridge 272ff16
Copy over most types from @types package
erikeldridge aa9c4f0
Document HybridParams and InferenceMode
erikeldridge 12e07c0
Trim unused AI types
erikeldridge f100306
Assert HybridParams sets the model name
erikeldridge 15c4e45
Use dom-chromium-ai package directly
erikeldridge 9786718
Use multi-line JSDoc comments for enum
erikeldridge c12b529
Use the existing name of the model params input
erikeldridge bbc83d9
Run docgen:all
erikeldridge 33db72a
Use in-cloud phrasing
erikeldridge 4f22b15
Parameterize default in-cloud model name
erikeldridge 6df8527
Use type for inference mode and update docs
erikeldridge 7a6c8e9
Run yarn format
erikeldridge eac3d4c
rebased and updated deps
hsubox76 c6a17b0
revert deps
hsubox76 6ccdc0e
Remove erroneous type dep
erikeldridge b07bdac
Vaihi add langmodel types. (#8927)
gsiddh 5302797
Took dependency on new type
gsiddh 776dd0d
updating to new type
gsiddh fe18abb
docgen
gsiddh 31a46a1
post yarn format
gsiddh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Project: /docs/reference/js/_project.yaml | ||
Book: /docs/reference/_book.yaml | ||
page_type: reference | ||
|
||
{% comment %} | ||
DO NOT EDIT THIS FILE! | ||
This is generated by the JS SDK team, and any local changes will be | ||
overwritten. Changes should be made in the source code at | ||
https://github.com/firebase/firebase-js-sdk | ||
{% endcomment %} | ||
|
||
# HybridParams interface | ||
Toggles hybrid inference. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface HybridParams | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [inCloudParams](./vertexai.hybridparams.md#hybridparamsincloudparams) | [ModelParams](./vertexai.modelparams.md#modelparams_interface) | Optional. Specifies advanced params for in-cloud inference. | | ||
| [mode](./vertexai.hybridparams.md#hybridparamsmode) | [InferenceMode](./vertexai.md#inferencemode) | Specifies on-device or in-cloud inference. Defaults to prefer on-device. | | ||
| [onDeviceParams](./vertexai.hybridparams.md#hybridparamsondeviceparams) | LanguageModelCreateOptions | Optional. Specifies advanced params for on-device inference. | | ||
|
||
## HybridParams.inCloudParams | ||
|
||
Optional. Specifies advanced params for in-cloud inference. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
inCloudParams?: ModelParams; | ||
``` | ||
|
||
## HybridParams.mode | ||
|
||
Specifies on-device or in-cloud inference. Defaults to prefer on-device. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
mode: InferenceMode; | ||
``` | ||
|
||
## HybridParams.onDeviceParams | ||
|
||
Optional. Specifies advanced params for on-device inference. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
onDeviceParams?: LanguageModelCreateOptions; | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@firebase/vertexai", | ||
"version": "1.2.1", | ||
"version": "1.2.0", | ||
"description": "A Firebase SDK for VertexAI", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"engines": { | ||
|
@@ -56,8 +56,9 @@ | |
}, | ||
"license": "Apache-2.0", | ||
"devDependencies": { | ||
"@firebase/app": "0.11.4", | ||
"@firebase/app": "0.11.3", | ||
"@rollup/plugin-json": "6.1.0", | ||
"@types/dom-chromium-ai": "0.0.6", | ||
"rollup": "2.79.2", | ||
"rollup-plugin-replace": "2.2.0", | ||
"rollup-plugin-typescript2": "0.36.0", | ||
|
@@ -78,4 +79,4 @@ | |
], | ||
"reportDir": "./coverage/node" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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