@eminent337/aery 0.1.89 → 0.1.90

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.
@@ -95,6 +95,7 @@ const API_KEY_PROVIDER_NAMES = {
95
95
  anthropic: "Anthropic",
96
96
  "azure-openai-responses": "Azure OpenAI Responses",
97
97
  cerebras: "Cerebras",
98
+ "cloudflare-workers-ai": "Cloudflare Workers AI",
98
99
  fireworks: "Fireworks",
99
100
  google: "Google Gemini",
100
101
  "google-vertex": "Google Vertex AI",
@@ -3842,7 +3843,17 @@ export class InteractiveMode {
3842
3843
  if (!apiKey) {
3843
3844
  throw new Error("API key cannot be empty.");
3844
3845
  }
3845
- this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey });
3846
+ if (providerId === "cloudflare-workers-ai") {
3847
+ const accountId = (await dialog.showPrompt("Enter Cloudflare account ID:")).trim();
3848
+ if (!accountId) {
3849
+ throw new Error("Cloudflare account ID cannot be empty.");
3850
+ }
3851
+ this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey, accountId });
3852
+ this.session.modelRegistry.refresh();
3853
+ }
3854
+ else {
3855
+ this.session.modelRegistry.authStorage.set(providerId, { type: "api_key", key: apiKey });
3856
+ }
3846
3857
  restoreEditor();
3847
3858
  await this.completeProviderAuthentication(providerId, providerName, "api_key", previousModel);
3848
3859
  }