Skip to content

Model detection breaks if pasted base URL ends with a space #6559

@vauhochzett

Description

@vauhochzett

App Version

v3.25.4

API Provider

OpenAI Compatible

Model Used

N/A

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

1. Setup

  • OS: Ubuntu 24.04.2 LTS
  • VS Code: v1.101.2

2. Exact actions

  • Open settings
  • Create new configuration profile
  • Select "OpenAI Compatible"
  • Copy and paste a base URL that ends on a space (e.g.: https://chat.model.example.com/v1 )
  • Open the model selection
  • Observe: No models are listed

To "fix" it:

  • Delete and re-add one character from the URL
  • Open the model selection
  • Now, models are listed

💥 Outcome Summary

Expected a list of models, but got an empty box.

📄 Relevant Logs or Errors (Optional)

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