Skip to content

resolve model ids containing slashes - #244

Merged
thushan merged 4 commits into
mainfrom
fix/models-slash-ids
Oct 27, 2026
Merged

thushan merged 4 commits into
mainfrom
fix/models-slash-ids

Conversation

@thushan

@thushan thushan commented Oct 27, 2026

Copy link
Copy Markdown
Owner

Summary

GET /olla/models/BAAI/bge-small-en-v1.5 returned 404 because only the first path segment was read as the id.

The route in server_routes.go now captures the rest of the path, and handler_unified_models.go uses it as the id (URL-decoded once). Slash ids resolve raw and percent-encoded (BAAI%2Fbge-small-en-v1.5), and aliases still resolve to them. An empty id, or one ending in a slash, returns 400. The path constant is added to constants/endpoint.go.

Type of change

  • Bug fix
  • Documentation

How was this tested?

New test: TestUnifiedModelByAliasHandler_PathIDs (raw, encoded, alias, empty and trailing-slash ids).

Tested together with the other October follow-up branches on a local integration branch at 0c25e0a:

  • make ready and make test-race pass at 0c25e0a
  • /olla-validate --quick: 42 pass, 0 fail (warnings and skips are nightly-only items)
  • tei-routing validation area: Section A 12/12, Section B B1 to B6 pass
  • /test-sticky-sessions: no new failures (the 7 provider-route 404s are the known shared-mock-URL limitation)
  • /claude-code-e2e against real Ollama: Tier A 16/0 on both the passthrough and translation legs, same as main
  • curl checks per feature against real Ollama and ollamock; log scan shows no panics, races or per-request WARN floods

Checklist

  • make ready passes at aedfe2d
  • Tests added or updated for the change
  • Documentation updated: docs/content/api-reference/models.md, v0.0.30 release note
  • No new dependencies added

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 264d8c4 and 379030a.

Files selected for processing: 6
  • docs/content/about/release-notes.md
  • docs/content/api-reference/models.md
  • internal/app/handlers/handler_unified_models.go
  • internal/app/handlers/handler_unified_models_test.go
  • internal/app/handlers/server_routes.go
  • internal/core/constants/endpoint.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@thushan
thushan merged commit fc1a26e into main Oct 27, 2026
8 checks passed
@thushan
thushan deleted the fix/models-slash-ids branch October 27, 2026 20:57
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.

1 participant