@contentgrowth/llm-service 1.3.6 → 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.js CHANGED
@@ -690,10 +690,12 @@ var GoogleProvider = class extends BaseLLMProvider {
690
690
  this._pendingOperations = /* @__PURE__ */ new Map();
691
691
  const httpOptions = config.baseURL ? { baseUrl: config.baseURL } : void 0;
692
692
  if (config.provider === "vertex") {
693
+ const vertexLocation = config.location || "global";
693
694
  if (config.apiKey) {
694
695
  this.client = new GoogleGenAI({
695
696
  vertexai: true,
696
697
  apiKey: config.apiKey,
698
+ location: vertexLocation,
697
699
  ...httpOptions ? { httpOptions } : {}
698
700
  });
699
701
  } else {
@@ -703,7 +705,7 @@ var GoogleProvider = class extends BaseLLMProvider {
703
705
  this.client = new GoogleGenAI({
704
706
  vertexai: true,
705
707
  project: config.project,
706
- location: config.location || "us-central1",
708
+ location: vertexLocation,
707
709
  ...httpOptions ? { httpOptions } : {}
708
710
  });
709
711
  }