@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 CHANGED
@@ -751,13 +751,14 @@ var GoogleProvider = class extends BaseLLMProvider {
751
751
  ...httpOptions ? { httpOptions } : {}
752
752
  });
753
753
  } else {
754
+ const vertexLocation = config.location || "global";
754
755
  if (!config.project) {
755
756
  console.warn("[GoogleProvider] Vertex AI: no project ID and no API key. Calls will likely fail.");
756
757
  }
757
758
  this.client = new import_genai.GoogleGenAI({
758
759
  vertexai: true,
759
760
  project: config.project,
760
- location: config.location || "us-central1",
761
+ location: vertexLocation,
761
762
  ...httpOptions ? { httpOptions } : {}
762
763
  });
763
764
  }