@contentgrowth/llm-service 1.3.5 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -525,6 +525,8 @@ declare namespace MODEL_CONFIGS {
|
|
|
525
525
|
export { cost_1 as cost };
|
|
526
526
|
let free_1: string;
|
|
527
527
|
export { free_1 as free };
|
|
528
|
+
export let live: string;
|
|
529
|
+
export let liveThinking: string;
|
|
528
530
|
export let video: string;
|
|
529
531
|
export let image: string;
|
|
530
532
|
}
|
|
@@ -539,6 +541,10 @@ declare namespace MODEL_CONFIGS {
|
|
|
539
541
|
export { cost_2 as cost };
|
|
540
542
|
let free_2: string;
|
|
541
543
|
export { free_2 as free };
|
|
544
|
+
let live_1: string;
|
|
545
|
+
export { live_1 as live };
|
|
546
|
+
let liveThinking_1: string;
|
|
547
|
+
export { liveThinking_1 as liveThinking };
|
|
542
548
|
let video_1: string;
|
|
543
549
|
export { video_1 as video };
|
|
544
550
|
let image_1: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -525,6 +525,8 @@ declare namespace MODEL_CONFIGS {
|
|
|
525
525
|
export { cost_1 as cost };
|
|
526
526
|
let free_1: string;
|
|
527
527
|
export { free_1 as free };
|
|
528
|
+
export let live: string;
|
|
529
|
+
export let liveThinking: string;
|
|
528
530
|
export let video: string;
|
|
529
531
|
export let image: string;
|
|
530
532
|
}
|
|
@@ -539,6 +541,10 @@ declare namespace MODEL_CONFIGS {
|
|
|
539
541
|
export { cost_2 as cost };
|
|
540
542
|
let free_2: string;
|
|
541
543
|
export { free_2 as free };
|
|
544
|
+
let live_1: string;
|
|
545
|
+
export { live_1 as live };
|
|
546
|
+
let liveThinking_1: string;
|
|
547
|
+
export { liveThinking_1 as liveThinking };
|
|
542
548
|
let video_1: string;
|
|
543
549
|
export { video_1 as video };
|
|
544
550
|
let image_1: string;
|
package/dist/index.js
CHANGED
|
@@ -193,6 +193,8 @@ var MODEL_CONFIGS = {
|
|
|
193
193
|
fast: "gemini-3.8-flash",
|
|
194
194
|
cost: "gemini-3.5-flash-lite",
|
|
195
195
|
free: "gemini-3.5-flash-lite",
|
|
196
|
+
live: "gemini-3.8-live",
|
|
197
|
+
liveThinking: "gemini-3.8-live-extended-thinking",
|
|
196
198
|
video: "veo",
|
|
197
199
|
image: "gemini-3-pro-image"
|
|
198
200
|
},
|
|
@@ -203,6 +205,8 @@ var MODEL_CONFIGS = {
|
|
|
203
205
|
fast: "gemini-3.7-flash",
|
|
204
206
|
cost: "gemini-3.5-flash-lite",
|
|
205
207
|
free: "gemini-3.5-flash-lite",
|
|
208
|
+
live: "gemini-3.8-live",
|
|
209
|
+
liveThinking: "gemini-3.8-live-extended-thinking",
|
|
206
210
|
video: "veo",
|
|
207
211
|
image: "gemini-3.1-flash-image"
|
|
208
212
|
},
|
|
@@ -686,10 +690,12 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
686
690
|
this._pendingOperations = /* @__PURE__ */ new Map();
|
|
687
691
|
const httpOptions = config.baseURL ? { baseUrl: config.baseURL } : void 0;
|
|
688
692
|
if (config.provider === "vertex") {
|
|
693
|
+
const vertexLocation = config.location || "global";
|
|
689
694
|
if (config.apiKey) {
|
|
690
695
|
this.client = new GoogleGenAI({
|
|
691
696
|
vertexai: true,
|
|
692
697
|
apiKey: config.apiKey,
|
|
698
|
+
location: vertexLocation,
|
|
693
699
|
...httpOptions ? { httpOptions } : {}
|
|
694
700
|
});
|
|
695
701
|
} else {
|
|
@@ -699,7 +705,7 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
699
705
|
this.client = new GoogleGenAI({
|
|
700
706
|
vertexai: true,
|
|
701
707
|
project: config.project,
|
|
702
|
-
location:
|
|
708
|
+
location: vertexLocation,
|
|
703
709
|
...httpOptions ? { httpOptions } : {}
|
|
704
710
|
});
|
|
705
711
|
}
|
|
@@ -1323,7 +1329,7 @@ ${prompt}` : prompt;
|
|
|
1323
1329
|
if (!((_b = (_a = this.client) == null ? void 0 : _a.live) == null ? void 0 : _b.connect)) {
|
|
1324
1330
|
throw new LLMServiceException("The configured Google provider SDK does not support live sessions.", 500);
|
|
1325
1331
|
}
|
|
1326
|
-
const resolvedModel = model || ((_c = this.models) == null ? void 0 : _c.live) ||
|
|
1332
|
+
const resolvedModel = model || ((_c = this.models) == null ? void 0 : _c.live) || "gemini-3.8-live";
|
|
1327
1333
|
return this.client.live.connect({
|
|
1328
1334
|
model: resolvedModel,
|
|
1329
1335
|
config,
|