@l10nmonster/helpers-anthropic 3.0.0-alpha.6 → 3.0.0-alpha.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/anthropicAgent.js CHANGED
@@ -69,7 +69,7 @@ export class AnthropicAgent extends providers.LLMTranslationProvider {
69
69
  if (this.#apiKey) {
70
70
  // Direct Anthropic API
71
71
  this.#client = new Anthropic({
72
- apiKey: await this.#apiKey,
72
+ apiKey: await (typeof this.#apiKey === 'function' ? this.#apiKey() : this.#apiKey),
73
73
  maxRetries: this.#maxRetries,
74
74
  timeout: 15 * 60000, // 15 minutes
75
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@l10nmonster/helpers-anthropic",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Anthropic Claude LLM provider for l10nmonster using Vertex AI",
5
5
  "type": "module",
6
6
  "main": "anthropicAgent.js",