Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dan-and
Copy link

@dan-and dan-and commented Jan 27, 2026

Context

Based on the large fix from PR #4793, this fixes the litellm provider model refresh for Kilocode Cli.

Implementation

Pass litellm credentials directly in the requestRouterModels message to ensure availability before config processing completes.

How to Test

  • Configure a litellm proxy backend with a working api key

  • Set litellm as the current providers

  • Run: kilocode models

kilocode models
{
  "error": "No models available for provider \"litellm\". The provider may require authentication or the model list could not be fetched.",
  "code": "NO_MODELS_AVAILABLE"
}

After the fix, kilocode models will return all available models provided by the litellm backend.

Get in Touch

dan-and

Fixes #3551

Based on the large fix from PR Kilo-Org#4793, this fixes the litellm provider model refresh for Kilocode Cli. Fixes Kilo-Org#3551 .
Pass litellm credentials directly in the requestRouterModels message to ensure availability before config processing completes.
@changeset-bot
Copy link

changeset-bot bot commented Jan 27, 2026

πŸ¦‹ Changeset detected

Latest commit: 222f4d2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@kilocode/cli Patch

Not sure what this means? Click here to learn what changesets are.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Self host LiteLLM introduced as provider to kilocode , refresh models got 400 bad request prompts.

1 participant