mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-12 02:31:04 +08:00
- Introduced `MetaExecutor` to support native Meta (Muse Code) API operations, including `Execute`, `ExecuteStream`, and `CountTokens`. - Added logic to handle Meta-specific `responses` endpoint, including request preparation, enriched authentication, header management, and response translation. - Implemented token counting functionality with custom `CountTokens` logic. - Updated `meta_executor` to process streamed and non-streamed responses, maintaining compatibility with the Codex schema. - Added utility functions to handle events, errors, and enriched metadata common to Meta API requests. - Extended `models.json` to include Meta's updated configuration with additional thinking levels like "minimal" and "max." - Introduced comprehensive tests to validate Meta-specific execution, streaming, header assignments, and response formatting.
11 KiB
11 KiB