@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.cjs
CHANGED
|
@@ -247,6 +247,8 @@ var MODEL_CONFIGS = {
|
|
|
247
247
|
fast: "gemini-3.8-flash",
|
|
248
248
|
cost: "gemini-3.5-flash-lite",
|
|
249
249
|
free: "gemini-3.5-flash-lite",
|
|
250
|
+
live: "gemini-3.8-live",
|
|
251
|
+
liveThinking: "gemini-3.8-live-extended-thinking",
|
|
250
252
|
video: "veo",
|
|
251
253
|
image: "gemini-3-pro-image"
|
|
252
254
|
},
|
|
@@ -257,6 +259,8 @@ var MODEL_CONFIGS = {
|
|
|
257
259
|
fast: "gemini-3.7-flash",
|
|
258
260
|
cost: "gemini-3.5-flash-lite",
|
|
259
261
|
free: "gemini-3.5-flash-lite",
|
|
262
|
+
live: "gemini-3.8-live",
|
|
263
|
+
liveThinking: "gemini-3.8-live-extended-thinking",
|
|
260
264
|
video: "veo",
|
|
261
265
|
image: "gemini-3.1-flash-image"
|
|
262
266
|
},
|
|
@@ -740,10 +744,12 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
740
744
|
this._pendingOperations = /* @__PURE__ */ new Map();
|
|
741
745
|
const httpOptions = config.baseURL ? { baseUrl: config.baseURL } : void 0;
|
|
742
746
|
if (config.provider === "vertex") {
|
|
747
|
+
const vertexLocation = config.location || "global";
|
|
743
748
|
if (config.apiKey) {
|
|
744
749
|
this.client = new import_genai.GoogleGenAI({
|
|
745
750
|
vertexai: true,
|
|
746
751
|
apiKey: config.apiKey,
|
|
752
|
+
location: vertexLocation,
|
|
747
753
|
...httpOptions ? { httpOptions } : {}
|
|
748
754
|
});
|
|
749
755
|
} else {
|
|
@@ -753,7 +759,7 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
753
759
|
this.client = new import_genai.GoogleGenAI({
|
|
754
760
|
vertexai: true,
|
|
755
761
|
project: config.project,
|
|
756
|
-
location:
|
|
762
|
+
location: vertexLocation,
|
|
757
763
|
...httpOptions ? { httpOptions } : {}
|
|
758
764
|
});
|
|
759
765
|
}
|
|
@@ -1377,7 +1383,7 @@ ${prompt}` : prompt;
|
|
|
1377
1383
|
if (!((_b = (_a = this.client) == null ? void 0 : _a.live) == null ? void 0 : _b.connect)) {
|
|
1378
1384
|
throw new LLMServiceException("The configured Google provider SDK does not support live sessions.", 500);
|
|
1379
1385
|
}
|
|
1380
|
-
const resolvedModel = model || ((_c = this.models) == null ? void 0 : _c.live) ||
|
|
1386
|
+
const resolvedModel = model || ((_c = this.models) == null ? void 0 : _c.live) || "gemini-3.8-live";
|
|
1381
1387
|
return this.client.live.connect({
|
|
1382
1388
|
model: resolvedModel,
|
|
1383
1389
|
config,
|