@contentgrowth/llm-service 1.3.6 → 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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -697,13 +697,14 @@ var GoogleProvider = class extends BaseLLMProvider {
|
|
|
697
697
|
...httpOptions ? { httpOptions } : {}
|
|
698
698
|
});
|
|
699
699
|
} else {
|
|
700
|
+
const vertexLocation = config.location || "global";
|
|
700
701
|
if (!config.project) {
|
|
701
702
|
console.warn("[GoogleProvider] Vertex AI: no project ID and no API key. Calls will likely fail.");
|
|
702
703
|
}
|
|
703
704
|
this.client = new GoogleGenAI({
|
|
704
705
|
vertexai: true,
|
|
705
706
|
project: config.project,
|
|
706
|
-
location:
|
|
707
|
+
location: vertexLocation,
|
|
707
708
|
...httpOptions ? { httpOptions } : {}
|
|
708
709
|
});
|
|
709
710
|
}
|