Skip to content

Commit 808ff24

Browse files
committed
docs(cursor): document HTTP/1.1 alias
1 parent b466e3e commit 808ff24

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs-site/src/content/docs/reference/configuration/providers.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ so passthrough stays byte-for-byte identical.
274274

275275
The Cursor bridge is experimental. After `ocx login cursor`, add or edit `providers.cursor`.
276276

277-
If a proxy cannot carry Cursor's default HTTP/2 stream, set `upstreamHttpVersion` to `"http1.1"`.
277+
If a proxy cannot carry Cursor's default HTTP/2 stream, set `upstreamHttpVersion` to `"http1.1"`
278+
or its `"h1"` alias.
278279
This switches inference to Cursor's `RunSSE` + `BidiAppend` compatibility transport and uses
279280
HTTP/1.1 for `GetUsableModels` discovery as well. The value requires an HTTPS `baseUrl`. Leave it
280281
unset or use `"auto"` for the existing HTTP/2 behavior. In the dashboard choose

‎docs-site/src/content/docs/zh-cn/reference/configuration/providers.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ affinity。这些策略不能规避 provider enforcement。
223223
Cursor 桥接是实验性的。执行 `ocx login cursor` 之后,添加或编辑 `providers.cursor`。
224224

225225
如果代理无法承载 Cursor 默认的 HTTP/2 stream,请将 `upstreamHttpVersion` 设置为
226-
`"http1.1"`。推理会切换到 Cursor 的 `RunSSE` + `BidiAppend` 兼容传输,`GetUsableModels`
226+
`"http1.1"` 或其别名 `"h1"`。推理会切换到 Cursor 的 `RunSSE` + `BidiAppend` 兼容传输,`GetUsableModels`
227227
实时发现也会使用 HTTP/1.1。该配置要求 `baseUrl` 使用 HTTPS。保持未设置或使用 `"auto"`,
228228
则继续使用现有 HTTP/2 行为。
229229
在仪表板中,可通过 **Providers → Cursor → 设置 → Cursor 传输协议** 进行选择。

0 commit comments

Comments
 (0)