@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.cjs CHANGED
@@ -744,10 +744,12 @@ 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";
747
748
  if (config.apiKey) {
748
749
  this.client = new import_genai.GoogleGenAI({
749
750
  vertexai: true,
750
751
  apiKey: config.apiKey,
752
+ location: vertexLocation,
751
753
  ...httpOptions ? { httpOptions } : {}
752
754
  });
753
755
  } else {
@@ -757,7 +759,7 @@ var GoogleProvider = class extends BaseLLMProvider {
757
759
  this.client = new import_genai.GoogleGenAI({
758
760
  vertexai: true,
759
761
  project: config.project,
760
- location: config.location || "us-central1",
762
+ location: vertexLocation,
761
763
  ...httpOptions ? { httpOptions } : {}
762
764
  });
763
765
  }