docs(specs): mu-douj openai-compat extraction decision memo (roadmap item 3)#430
Open
sahuagin wants to merge 1 commit into
Open
docs(specs): mu-douj openai-compat extraction decision memo (roadmap item 3)#430sahuagin wants to merge 1 commit into
sahuagin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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