@contentgrowth/llm-service 1.3.7 → 1.3.8
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 +1 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -744,15 +744,14 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
744
744
|
this._pendingOperations = /* @__PURE__ */ new Map();
|
|
745
745
|
const httpOptions = config.baseURL ? { baseUrl: config.baseURL } : void 0;
|
|
746
746
|
if (config.provider === "vertex") {
|
|
747
|
-
const vertexLocation = config.location || "global";
|
|
748
747
|
if (config.apiKey) {
|
|
749
748
|
this.client = new import_genai.GoogleGenAI({
|
|
750
749
|
vertexai: true,
|
|
751
750
|
apiKey: config.apiKey,
|
|
752
|
-
location: vertexLocation,
|
|
753
751
|
...httpOptions ? { httpOptions } : {}
|
|
754
752
|
});
|
|
755
753
|
} else {
|
|
754
|
+
const vertexLocation = config.location || "global";
|
|
756
755
|
if (!config.project) {
|
|
757
756
|
console.warn("[GoogleProvider] Vertex AI: no project ID and no API key. Calls will likely fail.");
|
|
758
757
|
}
|