Skip to content

docs(specs): mu-douj openai-compat extraction decision memo (roadmap item 3)#430

Open
sahuagin wants to merge 1 commit into
land-jul2-linefrom
douj-compat-decision
Open

docs(specs): mu-douj openai-compat extraction decision memo (roadmap item 3)#430
sahuagin wants to merge 1 commit into
land-jul2-linefrom
douj-compat-decision

Conversation

@sahuagin

@sahuagin sahuagin commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Decision memo for roadmap item 3: extract a shared chat-completions layer, or document why OpenRouter stays separate from the typed Responses crate. 330-line terrain-evidenced memo at specs/plans/mu-douj-openai-compat-decision.md ending in explicit OPERATOR DECISION items.

Headline: the mu-douj bead premise (2026-06-07) is stale on all three counts — openai_codex.rs no longer exists (codex is an AuthMode inside OpenaiProvider consuming the typed mu-openai crate); ollama.rs composes AnthropicProvider via /v1/messages (mu-fmas), not OpenRouterProvider; and vllm.rs already composes OpenRouterProvider, so there is exactly ONE chat-completions implementation and zero chat-completions-specific duplication.

Recommendation (operator's call): keep openrouter.rs standalone as the single chat-completions engine (option c) — the memo is the required why-separate document. Optional carve-out bead: ~150-200 genuinely-duplicated wire-agnostic helper lines into providers/translate_common.rs. Part 2 (per-request num_ctx) stays live but re-scopes to the ollama/Anthropic seam.

Verification: docs-only diff on land-jul2-line (same base as #429 whose full pre-pr-check ran green); verify-claims skip (no Files block).

Bead: mu-douj. Stacked on #427; retarget to main after it merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_012P4F7VoJPSQCvLy6duFH43

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