@@ -19,8 +19,8 @@ import { FirebaseApp, getApp, _getProvider } from '@firebase/app';
1919import { Provider } from '@firebase/component' ;
2020import { getModularInstance } from '@firebase/util' ;
2121import { DEFAULT_LOCATION , VERTEX_TYPE } from './constants' ;
22- import { VertexService } from './service' ;
23- import { Vertex , VertexOptions } from './public-types' ;
22+ import { VertexAIService } from './service' ;
23+ import { VertexAI , VertexAIOptions } from './public-types' ;
2424import { ERROR_FACTORY , VertexError } from './errors' ;
2525import { ModelParams , RequestOptions } from './types' ;
2626import { GenerativeModel } from './models/generative-model' ;
@@ -31,21 +31,21 @@ export { GenerativeModel };
3131
3232declare module '@firebase/component' {
3333 interface NameServiceMapping {
34- [ VERTEX_TYPE ] : VertexService ;
34+ [ VERTEX_TYPE ] : VertexAIService ;
3535 }
3636}
3737
3838/**
39- * Returns an {@link Vertex } instance for the given app.
39+ * Returns an {@link VertexAI } instance for the given app.
4040 *
4141 * @public
4242 *
4343 * @param app - The {@link @firebase/app#FirebaseApp } to use.
4444 */
45- export function getVertex (
45+ export function getVertexAI (
4646 app : FirebaseApp = getApp ( ) ,
47- options ?: VertexOptions
48- ) : Vertex {
47+ options ?: VertexAIOptions
48+ ) : VertexAI {
4949 app = getModularInstance ( app ) ;
5050 // Dependencies
5151 const vertexProvider : Provider < 'vertex' > = _getProvider ( app , VERTEX_TYPE ) ;
@@ -56,7 +56,7 @@ export function getVertex(
5656}
5757
5858export function getGenerativeModel (
59- vertex : Vertex ,
59+ vertex : VertexAI ,
6060 modelParams : ModelParams ,
6161 requestOptions ?: RequestOptions
6262) : GenerativeModel {
0 commit comments