@@ -87,7 +87,7 @@ export interface AxAIGoogleGeminiArgs {
87
87
apiKey ?: string
88
88
projectId ?: string
89
89
region ?: string
90
- endpoint ?: string
90
+ endpointId ?: string
91
91
config ?: Readonly < Partial < AxAIGoogleGeminiConfig > >
92
92
options ?: Readonly < AxAIServiceOptions & AxAIGoogleGeminiOptionsTools >
93
93
models ?: AxAIModelList < AxAIGoogleGeminiModel >
@@ -108,7 +108,7 @@ class AxAIGoogleGeminiImpl
108
108
constructor (
109
109
private config : AxAIGoogleGeminiConfig ,
110
110
private isVertex : boolean ,
111
- private endpoint ?: string ,
111
+ private endpointId ?: string ,
112
112
private apiKey ?: string ,
113
113
private options ?: AxAIGoogleGeminiArgs [ 'options' ]
114
114
) { }
@@ -140,11 +140,11 @@ class AxAIGoogleGeminiImpl
140
140
}
141
141
142
142
let apiConfig
143
- if ( this . endpoint ) {
143
+ if ( this . endpointId ) {
144
144
apiConfig = {
145
145
name : stream
146
- ? `/${ this . endpoint } :streamGenerateContent?alt=sse`
147
- : `/${ this . endpoint } :generateContent` ,
146
+ ? `/${ this . endpointId } :streamGenerateContent?alt=sse`
147
+ : `/${ this . endpointId } :generateContent` ,
148
148
}
149
149
} else {
150
150
apiConfig = {
@@ -366,9 +366,9 @@ class AxAIGoogleGeminiImpl
366
366
| AxAIGoogleVertexBatchEmbedRequest
367
367
368
368
if ( this . isVertex ) {
369
- if ( this . endpoint ) {
369
+ if ( this . endpointId ) {
370
370
apiConfig = {
371
- name : `/${ this . endpoint } :predict` ,
371
+ name : `/${ this . endpointId } :predict` ,
372
372
}
373
373
} else {
374
374
apiConfig = {
@@ -503,7 +503,7 @@ export class AxAIGoogleGemini extends AxBaseAI<
503
503
apiKey,
504
504
projectId,
505
505
region,
506
- endpoint ,
506
+ endpointId ,
507
507
config,
508
508
options,
509
509
models,
@@ -515,7 +515,7 @@ export class AxAIGoogleGemini extends AxBaseAI<
515
515
516
516
if ( isVertex ) {
517
517
let path
518
- if ( endpoint ) {
518
+ if ( endpointId ) {
519
519
path = 'endpoints'
520
520
} else {
521
521
path = 'publishers/google'
@@ -546,7 +546,7 @@ export class AxAIGoogleGemini extends AxBaseAI<
546
546
const aiImpl = new AxAIGoogleGeminiImpl (
547
547
_config ,
548
548
isVertex ,
549
- endpoint ,
549
+ endpointId ,
550
550
apiKey ,
551
551
options
552
552
)
0 commit comments