@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.js CHANGED
@@ -690,15 +690,14 @@ 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";
694
693
  if (config.apiKey) {
695
694
  this.client = new GoogleGenAI({
696
695
  vertexai: true,
697
696
  apiKey: config.apiKey,
698
- location: vertexLocation,
699
697
  ...httpOptions ? { httpOptions } : {}
700
698
  });
701
699
  } else {
700
+ const vertexLocation = config.location || "global";
702
701
  if (!config.project) {
703
702
  console.warn("[GoogleProvider] Vertex AI: no project ID and no API key. Calls will likely fail.");
704
703
  }