mirror of
https://gh-proxy.org/https://github.com/klinsmaya/sub2api.git
synced 2026-11-09 16:17:03 +08:00
LiteLLM 定价数据中 gpt-image-2 等模型已含 input_cost_per_image_token (图片输入 token 单价),但此前未被解析,导致图片编辑/图生图请求的 图像输入 token 被按文本输入价计费。 - LiteLLMModelPricing / LiteLLMRawEntry 新增 InputCostPerImageToken 字段并解析 - GetModelPricing 将其映射到 ModelPricing.ImageInputPricePerToken 计费拆分算术(computeTokenBreakdown)已支持图/文输入分价,本提交补齐 全局定价路径的数据来源。相关 #4386。 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015wcJTKDddxXSQrepSs3wrU