kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

feat: add CometAPI as a new provider

Open tensornull opened this issue 7 months ago • 3 comments

CometAPI integration

Overview

Add CometAPI as a new router/provider so users can fetch and pick CometAPI models alongside existing sources.

Changes

  • Provider: add cometapi to router models flow (parallel fetch + per-provider error events).
  • Settings: support CometAPI Key (and Base URL, defaulting to https://api.cometapi.com/v1/).
  • Models: integrate CometAPI into model cache and selection UI; failed fetch returns {} and emits a single error message.
  • Tests: cover success/failure paths and event payloads for cometapi.

Setup & Usage

  1. Get an API key from CometAPI: https://api.cometapi.com/console/token
  2. Put the key into Kilocode settings (CometAPI Key).
  3. Refresh router models; CometAPI models will appear if the key is valid.

Testing

  • Unit tests updated; full repo tests are green.
  • Manual: with a valid key, router models include cometapi; on errors, an error event is posted and the provider is empty in the final map.

Screenshots

image image

tensornull avatar Sep 07 '25 12:09 tensornull

⚠️ No Changeset found

Latest commit: d93bf6c0dc698827a98e9a62d1b909017101d8ab

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Sep 07 '25 12:09 changeset-bot[bot]

@Juice10 @kevinvandijk @drakonen @beatlevic @mrubens @saoudrizwan Hi ! Can you help me complete this PR?

Please let me know if anything else is needed.

Best regards !

tensornull avatar Sep 07 '25 12:09 tensornull

By the way, I fixed the error in pnpm test at the same time.😊

tensornull avatar Sep 07 '25 12:09 tensornull