9router/src/app/api/v1
decolua d3f61aac2f refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup
- Bug B1-B7: media UI m.kind||m.type, serviceKinds, gemini mediaPriority, schema kind, models/info lookup by kind
- Dead code D1-D6: safeParseJSON, drop PROVIDER_ENDPOINTS, orphan fetcher, GITHUB_CONFIG derive, getProviderConfig internal, legacy kiro file
- Translator concerns: toOpenAIUsage, toOpenAIFinish (gemini/kiro/ollama + fix kiro tool finish), thinking effort maps
- Reorg helpers/ → concerns/ (logic) + formats/ (per-format) + schema/ (pure enums: roles/blocks/finishReasons/defaults)
- Wire ~280 hardcoded role/block/finish/default literals to schema enums across 20+ files
- collapseTextParts + extractTextContent dedup
- Normalize translator fn names to openaiToXRequest / xToOpenAIResponse
- Golden tests lock behavior; 0 regression (byte-for-byte providers/alias, 26=26 known fails)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 18:49:38 +07:00
..
api/chat Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
audio - Cowork: ComboFormModal 2026-05-07 15:45:09 +07:00
chat/completions chore: add buildOutput RTK filter, drop legacy cloud sync, internal cleanup 2026-05-16 10:54:41 +07:00
embeddings feat: add /v1/embeddings endpoint (OpenAI-compatible) (#146) 2026-02-18 13:24:02 +07:00
images/generations feat: add OpenCode Go provider and support for custom models 2026-04-22 14:16:21 +07:00
messages Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
models refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
responses Enhance chat handling and introduce Caveman feature 2026-04-30 18:00:38 +07:00
search Enhance token refresh functionality across multiple executors 2026-04-28 17:28:57 +07:00
web/fetch Enhance token refresh functionality across multiple executors 2026-04-28 17:28:57 +07:00
route.js Refactor global styles and enhance MITM functionality 2026-05-03 18:00:35 +07:00