|
| 1 | +# AetherAPI Provider Integration |
| 2 | + |
| 3 | +## Summary |
| 4 | + |
| 5 | +Add AetherAPI (`https://api.aetherapi.dev/v1`) as a new OpenAI-compatible LLM provider in zoo-code. |
| 6 | + |
| 7 | +## Model |
| 8 | + |
| 9 | +- **ID**: `kimi-k2.6` |
| 10 | +- **Context Window**: 262,144 tokens |
| 11 | +- **Supports Images**: yes |
| 12 | +- **Supports Tool Calls**: yes |
| 13 | +- **Input Price**: $0.42 / 1M tokens |
| 14 | +- **Output Price**: $1.96 / 1M tokens |
| 15 | + |
| 16 | +## Architecture |
| 17 | + |
| 18 | +Follow the existing `BaseOpenAiCompatibleProvider` pattern used by Fireworks, Together, etc. |
| 19 | + |
| 20 | +### Files to Create |
| 21 | + |
| 22 | +1. `packages/types/src/providers/aetherapi.ts` — model metadata |
| 23 | +2. `src/api/providers/aetherapi.ts` — API handler |
| 24 | +3. `webview-ui/src/components/settings/providers/Aetherapi.tsx` — settings UI |
| 25 | + |
| 26 | +### Files to Modify |
| 27 | + |
| 28 | +1. `packages/types/src/provider-settings.ts` — add `aetherapi` to enums, schemas, mappings |
| 29 | +2. `packages/types/src/providers/index.ts` — export model metadata |
| 30 | +3. `src/api/providers/index.ts` — export handler |
| 31 | +4. `src/api/index.ts` — factory case |
| 32 | +5. `webview-ui/src/components/settings/constants.ts` — provider list + models |
| 33 | +6. `webview-ui/src/components/settings/utils/providerModelConfig.ts` — service config + default model |
| 34 | +7. `webview-ui/src/components/settings/ApiOptions.tsx` — wire UI component |
| 35 | +8. `webview-ui/src/components/settings/providers/index.ts` — export component |
| 36 | +9. `webview-ui/src/i18n/locales/en/settings.json` — translation keys |
| 37 | + |
| 38 | +## Settings |
| 39 | + |
| 40 | +- `aetherapiApiKey` (optional, string) |
| 41 | +- `aetherapiBaseUrl` (optional, string, default: `https://api.aetherapi.dev/v1`) |
| 42 | + |
| 43 | +## Error Handling |
| 44 | + |
| 45 | +Inherited from `BaseOpenAiCompatibleProvider` via `handleOpenAIError`. |
0 commit comments