gproxy v2.4.1
v2.4.1
Adds first-class rerank passthrough, preserves image SSE responses, and expands token-based settlement and the bundled OpenRouter pricing catalog.
English
Changed
- First-class rerank passthrough.
POST /v1/rerankis now a formal provider-shaped operation, with passthrough seeded for Custom and OpenRouter providers. Rerank requests use the normal routing, failover, permission, rate-limit, usage, and settlement pipeline. When an OpenRouter response reports onlyusage.total_tokens, that value is billed as input tokens. The bundled OpenRouter catalog currently includes six rerank price entries, all with zero prices. - Image SSE relay. Image requests with
stream: truepreserve and relay the upstream SSE payload; usage on the completed event still participates in token-based settlement. - Token-based image pricing. Image generation now settles reported image-output tokens instead of multiplying a flat per-image price. Price rules use
image_output_price, usage records exposeimage_output_tokens, and the bundled OpenRouter defaults now include text, embedding, and image models from the full catalog.
简体中文
变更
- Rerank 正式透传。
POST /v1/rerank现在是正式的 provider-shaped operation,Custom 和 OpenRouter provider 默认 seed passthrough。Rerank 请求仍经过常规的路由、故障转移、权限、限流、usage 记录和结算流程。OpenRouter 响应仅报告usage.total_tokens时,该值会按 input token 计费。内置 OpenRouter 目录当前已包含 6 条 rerank 价格记录,价格均为 0。 - 图片 SSE 透传。 图片请求带
stream: true时会保留并透传上游 SSE payload;完成事件中的 usage 仍参与 token 结算。 - 图片改为 token 计价。 图片生成现在按上游返回的图片输出 token 结算,不再乘以按张固定价格。价格规则改用
image_output_price,usage 记录新增image_output_tokens,内置 OpenRouter 默认表也改为从全量目录纳入文字、embedding 与图片模型。