Skip to content

LM Studio: Loaded models appear twice in Provider Configuration ProfileΒ #6954

@fbuechler

Description

@fbuechler

App Version

3.25.10

API Provider

LM Studio

Model Used

N/A

Roo Code Task Links (Optional)

No response

πŸ” Steps to Reproduce

  1. Start LM Studio (Windows 11) and load a model to be used with Roo Code
  2. Open Roo Code settings -> Providers
  3. Add a Configuration Profile with API Provider "LM Studio"
  4. The loaded model is displayed twice in the model selection list: once with the model path and once with the model id
Image

πŸ’₯ Outcome Summary

Expected models loaded in LM Studio to appear only once in the Configuration Profile, but got them twice under different names.

πŸ“„ Relevant Logs or Errors (Optional)

This might be a bug in getLMStudioModels() (https://github.com/RooCodeInc/Roo-Code/blob/main/src/api/providers/fetchers/lmstudio.ts#L53) where model.path is used as key for downloaded models but model.modelKey is used as key for loaded models.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions