github QuantumNous/new-api v0.10.7

latest releases: v0.10.8-alpha.4, v0.10.8-alpha.3, v0.10.8-alpha.2...
11 hours ago

Major Updates

  • Added disk request body caching to System Settings - 性能设置, which can significantly reduce memory usage for large request bodies (swapping memory to disk).
  • Supports configuring request header pass-through, see configuration
{
  "Authorization": "{client_header:Test_Header}"
}
  • Compatible with Grok's charging for non-compliant requests, with configuration support (System Settings - Model Related Settings - Grok Settings)
  • Supports codex context compression/v1/response/compact (requires adding a model, e.g., to use gpt-5.2, you need to configure gpt-5.2-openai-compact)
  • Supports channel preference, prioritizing a certain channel based on a field in the request (System Settings - Model Related Settings - Channel Affinity)
  • Displays detailed reasons for errors rejected due to policy violations in logs

主要更新

  • 系统设置-性能设置 增加磁盘请求体缓存,可大幅减少大请求体下的内存占用(磁盘换内存)
  • 支持配置请求头透传,配置参考
{
  "Authorization": "{client_header:Test_Header}"
}
  • 兼容Grok对不合规的请求进行收费操作,支持配置 (系统设置 - 模型相关设置 - Grok设置)
  • 支持codex上下文压缩/v1/response/compact (需要添加模型,例如要使用gpt-5.2,就需要配置gpt-5.2-openai-compact)
  • 支持渠道优选,根据请求某个字段优先选择某个渠道 (系统设置 - 模型相关设置 - 渠道亲和性)
  • 日志详情展示由于违反政策被拒绝的错误原因
image image

What's Changed

New Contributors

Full Changelog: v0.10.5...v0.10.7

Don't miss a new new-api release

NewReleases is sending notifications on new releases.