Skip to content

Ollama URL normalization (leading to issues like #5007) does not clean trailing / #6078

@Naam

Description

@Naam

App Version

Latest

API Provider

Anthropic

Model Used

N/A

Roo Code Task Links (Optional)

No response

🔁 Steps to Reproduce

See #5007 for more details, it leads people into a lot of confusion (myself included, until the issue was root-caused).

Image

Does not work, show an issue aboud embedding.

Image

works, no issues, difference is the single /

Trailing / in Ollama API URL are not sanitized and will result in API call failures being hidden by unrelated errors about the model not supporting embedding.

💥 Outcome Summary

Trailing / in the Ollama API URL is not sanitized and will result in API call failures being hidden by unrelated errors about the model not supporting embedding.

📄 Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions