feat(cursor): add compat chat-completions path and finalize no-thinking output behavior#2153
Closed
yifancao9211 wants to merge 6 commits intolbjlaq:mainfrom
Closed
feat(cursor): add compat chat-completions path and finalize no-thinking output behavior#2153yifancao9211 wants to merge 6 commits intolbjlaq:mainfrom
yifancao9211 wants to merge 6 commits intolbjlaq:mainfrom
Conversation
Introduce /cursor/chat/completions as a Cursor-oriented OpenAI compatibility layer with multi-dialect input normalization, response sanitization, protocol monitoring updates, and docs/UI sync.
…lish Expose Cursor reasoning visibility as a front-end setting in the multi-protocol section, wire it to runtime hot-update config, and remove request-header override behavior for deterministic rendering.
…ation Drop the Cursor reasoning mode config surface and enforce response-side reasoning stripping only. Improve non-stream performance by parsing JSON only when reasoning_content is detected and lower cursor response body cap to 16MB.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cursor 客户端配置(推荐)
Settings -> Models,在 OpenAI 模型区域添加并启用你的目标模型(例如claude-opus-4-6)。Settings -> API Keys中启用 OpenAI API Key,并填入 Antigravity 服务的 API Key。Override OpenAI Base URL,填写你的网关地址:http://127.0.0.1:8045/cursor/chat/completions,Cursor 会自动拼接该路径。/cursor/chat/completions127.0.0.1)且需要跨设备/外网访问,建议先做内网穿透并使用可访问的公网地址。