-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.yaml
More file actions
27 lines (20 loc) · 1 KB
/
config.yaml
File metadata and controls
27 lines (20 loc) · 1 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
# Cursor2API 配置文件
# 将 Cursor API 转换为 OpenAI/Anthropic 兼容格式
# 使用 enetx/surf 包实现 Chrome TLS 指纹模拟
# 服务端口
port: 3010
# 请求超时(秒)
timeout: 60
# 代理设置(可选)
# proxy: "http://127.0.0.1:7890"
# Cursor 验证脚本 URL(用于生成 x-is-human token)
script_url: "https://cursor.com/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/a-4-a/c.js?i=0&v=3&h=cursor.com"
# 浏览器指纹配置(用于 token 生成)
fingerprint:
unmasked_vendor_webgl: "Google Inc. (Intel)"
unmasked_renderer_webgl: "ANGLE (Intel, Intel(R) UHD Graphics (0x00009BA4) Direct3D11 vs_5_0 ps_5_0, D3D11)"
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
# 支持的模型列表
models: "gpt-4o,claude-3.5-sonnet,claude-3.7-sonnet,claude-4-sonnet,gemini-2.5-pro"
# Token 轮询池大小(每次请求轮流使用不同 token,分散限流压力)
token_pool_size: 5