Skip to content

feat(vertexai): Migrate to AI and add GoogleAI support #8931

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 27 commits into from
May 12, 2025
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c3ec037
feat(vertexai): Migrate to `GenAI` and add GoogleAI support
dlarocque Apr 15, 2025
4e831d1
Convert `GenAI` to new Firebase AI naming
dlarocque Apr 17, 2025
5a78b76
Convert backend types to classes
dlarocque Apr 22, 2025
02600d0
Cleanup
dlarocque Apr 22, 2025
ff62500
Move GoogleAI types to single file
dlarocque Apr 22, 2025
48fc75c
Format
dlarocque Apr 22, 2025
cee1fae
Encode/decode instance identifiers directly to/from backends
dlarocque Apr 22, 2025
475c81a
Update changeset
dlarocque Apr 23, 2025
730f460
Cleanup
dlarocque Apr 23, 2025
0e94110
fix(vertexai): pass `GenerativeModel`'s `BaseParams` to `ChatSession`
dlarocque Apr 24, 2025
15d9699
Fix generative model tests to use fakeAI
dlarocque Apr 28, 2025
6a1e02d
Add `packages/firebase/ai` directory for legacy resolvers
dlarocque Apr 29, 2025
dbdb762
Cleanup docs
dlarocque Apr 29, 2025
41b0385
[vertexai] Use json of unary-success-citations (#8981)
rlazo Apr 29, 2025
1d3b922
Use default location if location is empty string
dlarocque Apr 30, 2025
ee3e2a1
Merge branch 'main' into dl/genai
dlarocque Apr 30, 2025
44870ba
Merge branch 'dl/genai' of https://github.com/firebase/firebase-js-sd…
dlarocque Apr 30, 2025
4b6ab32
Replace 'vertexAI' error prefix with 'AI'
dlarocque May 1, 2025
1a41a92
Use Gemini Developer API and Gemini API in Vertex AI naming in docs
dlarocque May 2, 2025
cc1726d
update changeset
dlarocque May 2, 2025
6d8b119
Merge branch 'main' into dl/genai
dlarocque May 2, 2025
a516771
Update to Vertex AI Gemini API
dlarocque May 2, 2025
ea28656
Revert eslint change to fix firestore docs????
dlarocque May 6, 2025
c9f7113
Merge branch 'main' into dl/genai
dlarocque May 8, 2025
9529e08
docs fixes
dlarocque May 11, 2025
c4878c1
update toc
dlarocque May 11, 2025
07f68ad
docs review fixes
dlarocque May 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/tall-zoos-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'firebase': minor
'@firebase/vertexai': minor
---

Add support for the Google AI API, enabling usage in a free tier, and add new `AI` API to accomodate new product naming.
42 changes: 18 additions & 24 deletions common/api-review/firestore.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,14 @@ export interface LoadBundleTaskProgress {
export { LogLevel }

// @public
export interface MemoryCacheSettings {
export type MemoryCacheSettings = {
garbageCollector?: MemoryGarbageCollector;
}
};

// @public
export interface MemoryEagerGarbageCollector {
// (undocumented)
export type MemoryEagerGarbageCollector = {
kind: 'memoryEager';
}
};

// @public
export function memoryEagerGarbageCollector(): MemoryEagerGarbageCollector;
Expand All @@ -392,19 +391,17 @@ export function memoryEagerGarbageCollector(): MemoryEagerGarbageCollector;
export type MemoryGarbageCollector = MemoryEagerGarbageCollector | MemoryLruGarbageCollector;

// @public
export interface MemoryLocalCache {
// (undocumented)
export type MemoryLocalCache = {
kind: 'memory';
}
};

// @public
export function memoryLocalCache(settings?: MemoryCacheSettings): MemoryLocalCache;

// @public
export interface MemoryLruGarbageCollector {
// (undocumented)
export type MemoryLruGarbageCollector = {
kind: 'memoryLru';
}
};

// @public
export function memoryLruGarbageCollector(settings?: {
Expand Down Expand Up @@ -494,42 +491,39 @@ export class PersistentCacheIndexManager {
}

// @public
export interface PersistentCacheSettings {
export type PersistentCacheSettings = {
cacheSizeBytes?: number;
tabManager?: PersistentTabManager;
}
};

// @public
export interface PersistentLocalCache {
// (undocumented)
export type PersistentLocalCache = {
kind: 'persistent';
}
};

// @public
export function persistentLocalCache(settings?: PersistentCacheSettings): PersistentLocalCache;

// @public
export interface PersistentMultipleTabManager {
// (undocumented)
export type PersistentMultipleTabManager = {
kind: 'PersistentMultipleTab';
}
};

// @public
export function persistentMultipleTabManager(): PersistentMultipleTabManager;

// @public
export interface PersistentSingleTabManager {
// (undocumented)
export type PersistentSingleTabManager = {
kind: 'persistentSingleTab';
}
};

// @public
export function persistentSingleTabManager(settings: PersistentSingleTabManagerSettings | undefined): PersistentSingleTabManager;

// @public
export interface PersistentSingleTabManagerSettings {
export type PersistentSingleTabManagerSettings = {
forceOwnership?: boolean;
}
};

// @public
export type PersistentTabManager = PersistentSingleTabManager | PersistentMultipleTabManager;
Expand Down
Loading
Loading