Files
cursor2api/config.yaml
小海 a9ada0473f fix: 优化提示词注入策略 + 稳定性提升
- 使用 few-shot in-context learning 替代 system prompt 覆盖
- 过滤工具:94个 → 核心13个(降低上下文大小)
- 添加 AbortController 超时(120s)
- 模型列表从配置动态读取
2026-03-04 15:33:25 +08:00

25 lines
881 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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"