sub2api到codex使用一直正在重新连接

leioukupo 2026-07-17 22:20 1

我的是opencode go套餐

用sub2api中转,vscode的codex插件使用

前几天还正常使用,这几天一直

stream disconnected before completion: error sending request for url (http://192.168.31.9:8080/responses)


咋解决啊,我试了cc switch直接用也是这个

最新回复 (13)
  • Herielx 07-17 22:21
    1

    codex的话在api端口号后面加个v1应该就可以了吧

  • leioukupo 楼主 07-17 22:22
    2

    sub2api还是codex的配置文件里加??

    sub2api测试没问题

  • Herielx 07-17 22:22
    3

    在codex的配置文件里加试试看

  • leioukupo 楼主 07-17 22:25
    4

    正在重新连接 /5


    stream disconnected before completion: error sending request for url (http://192.168.31.9:8080/v1/responses)

    没用 ^-^

    我真服了,前几天蹬的好好的

  • leioukupo 楼主 07-17 22:26
    5

    2026-07-17 14:23:21.077 [info] Reasoning summary turn-start config resolved concurrentReasoningSummariesFeatureOverrideEnabled=false conversationId=019f6601-3586-7481-913f-ed6dcfc7b424 requestApprovalPolicy=null requestApprovalsReviewer=null requestPermissionProfile=null requestRuntimeWorkspaceRootCount=0 requestSandboxPolicyType=null requestSandboxWritableRootCount=0 resolvedApprovalPolicy=on-request resolvedApprovalsReviewer=user summary=none useAppServerPermissionDefault=true


    2026-07-17 14:23:21.079 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.146 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.167 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.180 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.182 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.254 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:23:21.254 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:24:15.676 [warning] [CodexMcpConnection] cli: message=“codex_core::responses_retry: stream disconnected - retrying sampling request (1/5 in 185ms)…”


    2026-07-17 14:24:15.681 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:24:35.593 [error] [desktop-notifications][global-error] ResizeObserver loop completed with undelivered notifications.


    2026-07-17 14:25:10.411 [warning] [CodexMcpConnection] cli: message=“codex_core::responses_retry: stream disconnected - retrying sampling request (2/5 in 411ms)…”


    2026-07-17 14:25:10.416 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed


    2026-07-17 14:26:05.195 [warning] [CodexMcpConnection] cli: message=“codex_core::responses_retry: stream disconnected - retrying sampling request (3/5 in 724ms)…”


    2026-07-17 14:26:05.200 [warning] [IpcClient] Received broadcast but no handler is configured method=thread-stream-state-changed

    问ai也没解决

  • Herielx 07-17 22:28
    6

    那还真没见过,平时这个问题都是没加v1导致的^-^

  • lyyone 07-17 22:28
    7



    用这个估计就可以了,测试连接一下

  • leioukupo 楼主 07-17 22:33
    8

    貌似也不行,用不了

    还是正在重新连接 /5


    stream disconnected before completion: error sending request for url (http://192.168.31.9:8080/responses)

  • carryons6 07-17 22:35
    9

    更改设置后重启codex了吗?我自己答的反代每次压缩上下文就报错停止

  • leioukupo 楼主 07-17 22:36
    10

    重启了,开的新对话

    压缩上下文我到现在一直是失败,只好用满了就开新对话

  • carryons6 07-17 22:44
    11

    我查到原因,应该解决了。

    你应该只在配置里加了openai_base_url=xxx吧?

    要在配置里写model_provider=“xxx”,然后写一长串

    model = “gpt-5.6-sol”

    model_provider = “cpa_local”


    [model_providers.cpa_local]

    name = “CPA-Plus Local”

    base_url = “http://127.0.0.1:8317/v1”

    wire_api = “responses”

    具体可以问问codex或者网页端chatgpt。

    原因是,不写的话,默认是openai官方作为model_provider,压缩上下文会直接向openai发送请求,进行远程压缩。然而你用的api是反代,部署在中转站/你自己电脑上,这个api不是openai官方的api,所以压缩会失败。

    这样改会让压缩上下文在本地进行,但是看不到之前的聊天记录。然而只是看不到而已,实际聊天记录是存在本地的。

  • leioukupo 楼主 07-17 22:46
    12

    不是啊,写了

    是sub2api提供的标志配置文件

    都有这些

  • carryons6 07-17 22:52
    13

    在配置的[feature]下添加:

    remote_compaction_v2 = false

* 帖子来源Linux.do
返回