Skip to content

Try to use exact provider-model profile for autocompletion if such exists#5658

Closed
wkordalski wants to merge 1 commit into
Kilo-Org:mainfrom
wkordalski:autocompletion-profile-selection
Closed

Try to use exact provider-model profile for autocompletion if such exists#5658
wkordalski wants to merge 1 commit into
Kilo-Org:mainfrom
wkordalski:autocompletion-profile-selection

Conversation

@wkordalski
Copy link
Copy Markdown

Context

I've created two profiles: Mistral's devstral and Mistral's codestral (for autocompletion).
And autocompletion stopped working.
Logs revealed 401 Unauthorized error.

It turned out that KiloCode selected the devstral profile for autocompletion (the first Mistral's profile)
and used the API key from the profile (for api.mistral.ai endpoint) with the codestral.mistral.ai endpoint.

codestral.mistral.ai endpoint is default endpoint for autocompletion with Mistral provider if the user does not set another
endpoint in profile settings. But, as the profile is related to devstral (not codestral) model, user does not have such option.

Of course codestral.mistral.ai endpoint with API key for api.mistral.ai simply does not work.

Implementation

I've added a lookup for profile with exact provider-model match before falling back to "any profile of looked-up provider".

Screenshots

How to Test

  1. Create profile for Mistral / devstral
  2. Create profile for Mistral / codestral
  3. Autocompletion should work.

Get in Touch

My discord handle is wkordalski

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 4, 2026

⚠️ No Changeset found

Latest commit: 743ca20

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

@kevinvandijk
Copy link
Copy Markdown
Contributor

Hi! Recently we made the decision to start working hard on a ground-up rebuild of this extension using the new Kilo CLI as the backend. Because of this we made the decision to start temporarily limiting the size and type of features we're still accepting into the current extension. If you think this functionality is still important could please add a feature request or submit a PR to the new repository?

Regardless, we really appreciate the effort you made. Please reach out to me on Discord (Kevin) with the email address you used to sign up for Kilo so I can grant you some credits!

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.

2 participants