mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-11 18:20:26 +08:00
- Refine finish reason assignment logic in OpenAI interactions to account for incomplete states (`length`, `content_filter`) and tool call indices. - Implement changes to normalize tool call indexing to ensure contiguous 0-based indexing. - Add `status` and `incomplete_details` fields to OpenAI response payloads for enriched status handling. - Improve logic for handling `generation_config` fields during interactions request conversion. - Add robust defaulting for missing usage metrics in response payloads. - Ensure comprehensive test coverage for all enhanced scenarios. Closes: #5851
62 KiB
62 KiB