mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
- Add responseSanitizer.ts: strips non-standard fields (x_groq, usage_breakdown, service_tier), extracts <think> tags into reasoning_content, normalizes id/object/usage for strict OpenAI SDK v1.83+ compatibility - Add roleNormalizer.ts: developer→system for non-OpenAI providers, system→user merging for GLM/ERNIE models - Integrate sanitizer into chatCore.ts (non-streaming) and stream.ts (streaming passthrough) - Integrate role normalizer into translator/index.ts pipeline - Add response_format (json_schema/json_object) → Gemini responseMimeType/responseSchema conversion - Update CHANGELOG.md with v1.1.0 entry - Update README.md, ARCHITECTURE.md, TROUBLESHOOTING.md with new capabilities