404-Fehler bei Modellen mit Doppelpunkten im Namen bei Verwendung von OpenRouter

Resolved 💬 4 comments Opened May 21, 2025 by benscho1981 Closed Sep 4, 2025

What version of Codex is running?

aktuellste von notepackagemanager verfügbare Version stand 21-05-2025

Which model were you using?

ist egal openrouter wird genutzt

What platform is your computer?

archlinux

What steps can reproduce the bug?

Problem:
Wenn ich Codex mit OpenRouter verwende, funktionieren Modelle mit Doppelpunkten (z.B. anbieter:model) beim Start, aber beim Chatten tritt ein 404-Fehler auf. Modelle ohne Doppelpunkt funktionieren problemlos.

Vermutung:
Der Modellname wird vermutlich als Teil der URL übergeben, und der Doppelpunkt verursacht einen Syntaxfehler oder ungültigen Pfad.

Frage:
Gibt es einen Workaround oder ist eine Anpassung in Codex nötig, damit auch Modellnamen mit Doppelpunkten unterstützt werden?

System:

  • Arch Linux
  • Codex-Version: [deine Version]
  • OpenRouter API

Problem:
When I use Codex with OpenRouter, models with colons in their names (e.g. provider:model) can be started, but when chatting, a 404 error occurs. Models without a colon work without any issues.

Suspected cause:
The model name is likely passed as part of the URL, and the colon causes a syntax error or an invalid path, resulting in a 404 error.

Question:
Is there a workaround, or does Codex need to be updated to support model names containing colons?

System:

Arch Linux

Codex version: [your version]

OpenRouter API

What is the expected behavior?

_No response_

What do you see instead?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗