发布

  • feat(util): implement dynamic thinking suffix normalization and refactor budget resolution logic

    frostbyte_neo 发布于 2025-12-10 19:10:50 +00:00

    • Added support for parsing and normalizing dynamic thinking model suffixes.
    • Centralized budget resolution across executors and payload helpers.
    • Retired legacy Gemini-specific thinking handlers in favor of unified logic.
    • Updated executors to use metadata-based thinking configuration.
    • Added ResolveOriginalModel utility for resolving normalized upstream models using request metadata.
    • Updated executors (Gemini, Codex, iFlow, OpenAI, Qwen) to incorporate upstream model resolution and substitute model values in payloads and request URLs.
    • Ensured fallbacks handle cases with missing or malformed metadata to derive models robustly.
    • Refactored upstream model resolution to dynamically incorporate metadata for selecting and normalizing models.
    • Improved handling of thinking configurations and model overrides in executors.
    • Removed hardcoded thinking model entries and migrated logic to metadata-based resolution.
    • Updated payload mutations to always include the resolved model.
    下载附件