Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1363ecc
Fix languageCode parameter in action_code_url (#8912)
pashanka Apr 16, 2025
a0bcc9a
Merge main into release
google-oss-bot Apr 22, 2025
20b45d3
test(vertexai): update mock responses to v10 (#8959)
dlarocque Apr 23, 2025
730f460
Cleanup
dlarocque Apr 23, 2025
b204e71
Version Packages (#8956)
google-oss-bot Apr 24, 2025
9952dbc
Merge branch 'release'
dlarocque Apr 24, 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
0e2558a
Improve the integration test coverage for online vs offline compariso…
ehsannas Apr 28, 2025
dd6a8f0
fix(vertexai): add missing quote to chat role error message (#8979)
dlarocque Apr 29, 2025
ea1f913
Auto Enable SSL for Firebase Studio (#8980)
maneesht Apr 29, 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
0e12766
Add support for running the emulators in Cloud Workstation (#8968)
maneesht Apr 30, 2025
080a90d
Add Cookie Support For Firebase Studio (#8986)
maneesht May 1, 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
5ddf24c
Complete Hybrid inference impl
pashanka Apr 16, 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: 0 additions & 6 deletions .changeset/cyan-frogs-relate.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/gentle-rocks-repeat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-snails-drive.md

This file was deleted.

10 changes: 10 additions & 0 deletions .changeset/nice-plants-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@firebase/database-compat": patch
"@firebase/database": patch
"@firebase/firestore": patch
"@firebase/functions": patch
"@firebase/storage": patch
"@firebase/util": patch
---

Auto Enable SSL for Firebase Studio
11 changes: 11 additions & 0 deletions .changeset/nine-pugs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@firebase/auth": patch
"@firebase/data-connect": patch
"@firebase/database-compat": patch
"@firebase/database": patch
"@firebase/firestore": patch
"@firebase/storage": patch
"@firebase/util": patch
---

Fix Auth Redirects on Firebase Studio
5 changes: 0 additions & 5 deletions .changeset/odd-wolves-sit.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/slow-students-fry.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/tall-zoos-stare.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'@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.
Add support for the Gemini Developer 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
4 changes: 3 additions & 1 deletion common/api-review/storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class _FirebaseStorageImpl implements FirebaseStorage {
constructor(
app: FirebaseApp, _authProvider: Provider<FirebaseAuthInternalName>,
_appCheckProvider: Provider<AppCheckInternalComponentName>,
_url?: string | undefined, _firebaseVersion?: string | undefined);
_url?: string | undefined, _firebaseVersion?: string | undefined, _isUsingEmulator?: boolean);
readonly app: FirebaseApp;
// (undocumented)
readonly _appCheckProvider: Provider<AppCheckInternalComponentName>;
Expand All @@ -77,6 +77,8 @@ export class _FirebaseStorageImpl implements FirebaseStorage {
_getAuthToken(): Promise<string | null>;
get host(): string;
set host(host: string);
// (undocumented)
_isUsingEmulator: boolean;
// Warning: (ae-forgotten-export) The symbol "ConnectionType" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "RequestInfo" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "Connection" needs to be exported by the entry point index.d.ts
Expand Down
6 changes: 6 additions & 0 deletions common/api-review/util.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ export function isBrowserExtension(): boolean;
// @public
export function isCloudflareWorker(): boolean;

// @public
export function isCloudWorkstation(host: string): boolean;

// Warning: (ae-missing-release-tag) "isElectron" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
Expand Down Expand Up @@ -395,6 +398,9 @@ export function ordinal(i: number): string;
// @public (undocumented)
export type PartialObserver<T> = Partial<Observer<T>>;

// @public
export function pingServer(endpoint: string): Promise<boolean>;

// Warning: (ae-internal-missing-underscore) The name "promiseWithTimeout" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
Expand Down
19 changes: 16 additions & 3 deletions common/api-review/vertexai.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export class BooleanSchema extends Schema {

// @public
export class ChatSession {
constructor(apiSettings: ApiSettings, model: string, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined);
// Warning: (ae-forgotten-export) The symbol "ChromeAdapter" needs to be exported by the entry point index.d.ts
constructor(apiSettings: ApiSettings, model: string, chromeAdapter: ChromeAdapter, params?: StartChatParams | undefined, requestOptions?: RequestOptions | undefined);
getHistory(): Promise<Content[]>;
// (undocumented)
model: string;
Expand Down Expand Up @@ -392,8 +393,9 @@ export interface GenerativeContentBlob {

// @public
export class GenerativeModel extends AIModel {
constructor(ai: AI, modelParams: ModelParams, requestOptions?: RequestOptions);
constructor(ai: AI, modelParams: ModelParams, chromeAdapter: ChromeAdapter, requestOptions?: RequestOptions);
countTokens(request: CountTokensRequest | string | Array<string | Part>): Promise<CountTokensResponse>;
static DEFAULT_HYBRID_IN_CLOUD_MODEL: string;
generateContent(request: GenerateContentRequest | string | Array<string | Part>): Promise<GenerateContentResult>;
generateContentStream(request: GenerateContentRequest | string | Array<string | Part>): Promise<GenerateContentStreamResult>;
// (undocumented)
Expand All @@ -415,7 +417,7 @@ export class GenerativeModel extends AIModel {
export function getAI(app?: FirebaseApp, options?: AIOptions): AI;

// @public
export function getGenerativeModel(ai: AI, modelParams: ModelParams, requestOptions?: RequestOptions): GenerativeModel;
export function getGenerativeModel(ai: AI, modelParams: ModelParams | HybridParams, requestOptions?: RequestOptions): GenerativeModel;

// @beta
export function getImagenModel(ai: AI, modelParams: ImagenModelParams, requestOptions?: RequestOptions): ImagenModel;
Expand Down Expand Up @@ -547,6 +549,14 @@ export enum HarmSeverity {
HARM_SEVERITY_UNSUPPORTED = "HARM_SEVERITY_UNSUPPORTED"
}

// @public
export interface HybridParams {
inCloudParams?: ModelParams;
mode: InferenceMode;
// Warning: (ae-forgotten-export) The symbol "LanguageModelCreateOptions" needs to be exported by the entry point index.d.ts
onDeviceParams?: LanguageModelCreateOptions;
}

// @beta
export enum ImagenAspectRatio {
LANDSCAPE_16x9 = "16:9",
Expand Down Expand Up @@ -631,6 +641,9 @@ export interface ImagenSafetySettings {
safetyFilterLevel?: ImagenSafetyFilterLevel;
}

// @public
export type InferenceMode = 'prefer_on_device' | 'only_on_device' | 'only_in_cloud';

// @public
export interface InlineDataPart {
// (undocumented)
Expand Down
2 changes: 0 additions & 2 deletions config/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ module.exports = {
}
}
],
// We prefer using interfaces, but we need to use types for aliases like '
// '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
Expand Down
26 changes: 8 additions & 18 deletions docs-devsite/_toc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,28 +245,10 @@ toc:
path: /docs/reference/js/firestore_.loadbundletask.md
- title: LoadBundleTaskProgress
path: /docs/reference/js/firestore_.loadbundletaskprogress.md
- title: MemoryCacheSettings
path: /docs/reference/js/firestore_.memorycachesettings.md
- title: MemoryEagerGarbageCollector
path: /docs/reference/js/firestore_.memoryeagergarbagecollector.md
- title: MemoryLocalCache
path: /docs/reference/js/firestore_.memorylocalcache.md
- title: MemoryLruGarbageCollector
path: /docs/reference/js/firestore_.memorylrugarbagecollector.md
- title: PersistenceSettings
path: /docs/reference/js/firestore_.persistencesettings.md
- title: PersistentCacheIndexManager
path: /docs/reference/js/firestore_.persistentcacheindexmanager.md
- title: PersistentCacheSettings
path: /docs/reference/js/firestore_.persistentcachesettings.md
- title: PersistentLocalCache
path: /docs/reference/js/firestore_.persistentlocalcache.md
- title: PersistentMultipleTabManager
path: /docs/reference/js/firestore_.persistentmultipletabmanager.md
- title: PersistentSingleTabManager
path: /docs/reference/js/firestore_.persistentsingletabmanager.md
- title: PersistentSingleTabManagerSettings
path: /docs/reference/js/firestore_.persistentsingletabmanagersettings.md
- title: Query
path: /docs/reference/js/firestore_.query.md
- title: QueryCompositeFilterConstraint
Expand Down Expand Up @@ -482,6 +464,8 @@ toc:
path: /docs/reference/js/vertexai.aioptions.md
- title: ArraySchema
path: /docs/reference/js/vertexai.arrayschema.md
- title: Backend
path: /docs/reference/js/vertexai.backend.md
- title: BaseParams
path: /docs/reference/js/vertexai.baseparams.md
- title: BooleanSchema
Expand Down Expand Up @@ -540,10 +524,14 @@ toc:
path: /docs/reference/js/vertexai.generativecontentblob.md
- title: GenerativeModel
path: /docs/reference/js/vertexai.generativemodel.md
- title: GoogleAIBackend
path: /docs/reference/js/vertexai.googleaibackend.md
- title: GroundingAttribution
path: /docs/reference/js/vertexai.groundingattribution.md
- title: GroundingMetadata
path: /docs/reference/js/vertexai.groundingmetadata.md
- title: HybridParams
path: /docs/reference/js/vertexai.hybridparams.md
- title: ImagenGCSImage
path: /docs/reference/js/vertexai.imagengcsimage.md
- title: ImagenGenerationConfig
Expand Down Expand Up @@ -606,6 +594,8 @@ toc:
path: /docs/reference/js/vertexai.toolconfig.md
- title: UsageMetadata
path: /docs/reference/js/vertexai.usagemetadata.md
- title: VertexAIBackend
path: /docs/reference/js/vertexai.vertexaibackend.md
- title: VertexAIOptions
path: /docs/reference/js/vertexai.vertexaioptions.md
- title: VideoMetadata
Expand Down
Loading