Merge pull request #2883 from seefs001/fix/claude-relay-info-input-token

fix: 使用openai兼容接口调用部分渠道在最终端点为claude原生端点下还是走了openai扣减input_token的逻辑
This commit is contained in:
Calcium-Ion
2026-02-08 00:17:50 +08:00
committed by GitHub
10 changed files with 21 additions and 31 deletions

View File

@@ -148,6 +148,8 @@ type RelayInfo struct {
// RequestConversionChain records request format conversions in order, e.g.
// ["openai", "openai_responses"] or ["openai", "claude"].
RequestConversionChain []types.RelayFormat
// 最终请求到上游的格式 TODO: 当前仅设置了Claude
FinalRequestRelayFormat types.RelayFormat
ThinkingContentInfo
TokenCountMeta