feat(openai): 支持messages模型映射与instructions模板注入
This commit is contained in:
@@ -202,6 +202,32 @@ gateway:
|
||||
#
|
||||
# 注意:开启后会影响所有客户端的行为(不仅限于 VS Code / Codex CLI),请谨慎开启。
|
||||
force_codex_cli: false
|
||||
# Optional: template file used to build the final top-level Codex `instructions`.
|
||||
# 可选:用于构建最终 Codex 顶层 `instructions` 的模板文件路径。
|
||||
#
|
||||
# This is applied on the `/v1/messages -> Responses/Codex` conversion path,
|
||||
# after Claude `system` has already been normalized into Codex `instructions`.
|
||||
# 该模板作用于 `/v1/messages -> Responses/Codex` 转换链路,且发生在 Claude `system`
|
||||
# 已经被归一化为 Codex `instructions` 之后。
|
||||
#
|
||||
# The template can reference:
|
||||
# 模板可引用:
|
||||
# - {{ .ExistingInstructions }} : converted client instructions/system
|
||||
# - {{ .OriginalModel }} : original requested model
|
||||
# - {{ .NormalizedModel }} : normalized routing model
|
||||
# - {{ .BillingModel }} : billing model
|
||||
# - {{ .UpstreamModel }} : final upstream model
|
||||
#
|
||||
# If you want to preserve client system prompts, keep {{ .ExistingInstructions }}
|
||||
# somewhere in the template. If omitted, the template output fully replaces it.
|
||||
# 如需保留客户端 system 提示词,请在模板中显式包含 {{ .ExistingInstructions }}。
|
||||
# 若省略,则模板输出会完全覆盖它。
|
||||
#
|
||||
# Docker users can mount a host file to /app/data/codex-instructions.md.tmpl
|
||||
# and point this field there.
|
||||
# Docker 用户可将宿主机文件挂载到 /app/data/codex-instructions.md.tmpl,
|
||||
# 然后把本字段指向该路径。
|
||||
forced_codex_instructions_template_file: ""
|
||||
# OpenAI 透传模式是否放行客户端超时头(如 x-stainless-timeout)
|
||||
# 默认 false:过滤超时头,降低上游提前断流风险。
|
||||
openai_passthrough_allow_timeout_headers: false
|
||||
@@ -347,12 +373,6 @@ gateway:
|
||||
# Enable batch load calculation for scheduling
|
||||
# 启用调度批量负载计算
|
||||
load_batch_enabled: true
|
||||
# Snapshot bucket MGET chunk size
|
||||
# 调度快照分桶读取时的 MGET 分块大小
|
||||
snapshot_mget_chunk_size: 128
|
||||
# Snapshot bucket write chunk size
|
||||
# 调度快照重建写入时的分块大小
|
||||
snapshot_write_chunk_size: 256
|
||||
# Slot cleanup interval (duration)
|
||||
# 并发槽位清理周期(时间段)
|
||||
slot_cleanup_interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user