mirror of
https://github.com/7836246/cursor2api.git
synced 2026-06-20 12:12:33 +08:00
- 使用 few-shot in-context learning 替代 system prompt 覆盖 - 过滤工具:94个 → 核心13个(降低上下文大小) - 添加 AbortController 超时(120s) - 模型列表从配置动态读取
25 lines
881 B
YAML
25 lines
881 B
YAML
# Cursor2API v2 配置文件
|
||
|
||
# 服务端口
|
||
port: 3010
|
||
|
||
# 请求超时(秒)
|
||
timeout: 120
|
||
|
||
# 代理设置(可选)
|
||
# proxy: "http://127.0.0.1:7890"
|
||
|
||
# Cursor 验证脚本 URL(用于生成 x-is-human token)
|
||
# 访问 https://cursor.com/cn/docs,打开 DevTools 网络面板,
|
||
# 找到类似 https://cursor.com/xxx/xxx/c.js?... 的请求
|
||
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"
|
||
|
||
# Cursor 使用的模型
|
||
cursor_model: "anthropic/claude-sonnet-4.6"
|
||
|
||
# 浏览器指纹配置
|
||
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"
|