-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yml
More file actions
33 lines (28 loc) · 1.04 KB
/
Copy pathconfig.example.yml
File metadata and controls
33 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# codex-adapter 配置文件
# 复制为 config.yml 后修改
port: 8003
log_level: info
# 支持配置多个后端,通过请求中的 model 名称自动路由
backends:
- name: my-backend # 后端名称(用于日志和路由)
model: my-model # 对应的 model 名称
default: true # 标记为默认后端(未匹配时使用)
url: http://localhost:8000/v1/chat/completions
api_key: your-api-key
# max_tokens: 128000 # 上下文 token 上限
# extra_headers:
# x-custom-header: "value"
extra_body:
stream_options:
include_usage: true
# chat_template_kwargs: # WPS/GLM 后端需要
# enable_thinking: false
# 注意:如果后端返回 param_wrong 错误,尝试设置 extra_body: null 禁用默认值
# - name: another-backend
# model: another-model
# url: https://api.example.com/v1/chat/completions
# api_key: another-key
# max_tokens: 64000
# extra_body:
# stream_options:
# include_usage: true