From feaab75e1baa43ba07bde66df1d41c225827065e Mon Sep 17 00:00:00 2001 From: haiming Date: Sun, 10 May 2026 18:59:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=EF=BC=9A=E6=A8=A1=E5=9E=8B=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=AF=86=E5=88=AB=20bug=20=20=20=20=20src/backend/reg?= =?UTF-8?q?istry.js:304=20=E7=9A=84=20getModelType()=20=E6=94=B6=E5=88=B0?= =?UTF-8?q?=20"chatgpt=5Ftext/gpt-instant"=20=E6=97=B6=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=87=E5=89=B2=E6=96=9C=E6=9D=A0=EF=BC=8C=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=8E=BB=E5=8C=B9=E9=85=8D=E9=80=82=E9=85=8D=E5=99=A8=E9=87=8C?= =?UTF-8?q?=20ID=20=E4=B8=BA=20"gpt-instant"=20=E7=9A=84=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=EF=BC=8C=E6=B0=B8=E8=BF=9C=E6=89=BE=E4=B8=8D=E5=88=B0=EF=BC=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=20'image'=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=96=87=E6=9C=AC=E6=A8=A1=E5=9E=8B=E8=B5=B0?= =?UTF-8?q?=E4=BA=86=E5=9B=BE=E5=83=8F=E7=94=9F=E6=88=90=E5=88=86=E6=94=AF?= =?UTF-8?q?=E3=80=82=20=20=20=20=20=E6=97=A5=E5=BF=97=E5=AF=B9=E6=AF=94?= =?UTF-8?q?=EF=BC=9A=20=20=20=20=20-=20=E4=BF=AE=E5=A4=8D=E5=89=8D?= =?UTF-8?q?=EF=BC=9A=E8=A7=A3=E6=9E=90=E6=A8=A1=E5=BC=8F:=20=E5=9B=BE?= =?UTF-8?q?=E5=83=8F=E7=94=9F=E6=88=90=20(=E4=BB=85=E5=8F=96=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=9D=A1)=20=E2=9D=8C=20=20=20=20=20-=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=EF=BC=9A=E8=A7=A3=E6=9E=90=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F:=20=E6=96=87=E6=9C=AC=E5=AF=B9=E8=AF=9D=20(=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E4=B8=8A=E4=B8=8B=E6=96=87=E6=9E=84=E5=BB=BA)=20?= =?UTF-8?q?=E2=9C=85=20=20=20=20=20=E6=AD=A3=E5=B8=B8=E8=A1=8C=E4=B8=BA?= =?UTF-8?q?=EF=BC=9ASender=20(untrusted=20metadata)=20=20=20=20=20OpenClaw?= =?UTF-8?q?=20=E8=AE=BE=E8=AE=A1=E5=A6=82=E6=AD=A4=E2=80=94=E2=80=94?= =?UTF-8?q?=E5=9C=A8=E6=AF=8F=E6=AC=A1=E8=AF=B7=E6=B1=82=E5=89=8D=E6=B3=A8?= =?UTF-8?q?=E5=85=A5=E5=8F=91=E9=80=81=E8=80=85=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=EF=BC=88label/id=EF=BC=89=EF=BC=8C=E8=AE=A9=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=9F=A5=E9=81=93=E6=B6=88=E6=81=AF=E6=9D=A5=E6=BA=90=E3=80=82?= =?UTF-8?q?=E4=BD=A0=E7=9A=84=E5=8E=9F=E5=A7=8B=E6=B6=88=E6=81=AF=20?= =?UTF-8?q?=E6=82=A8=E5=A5=BD=20=E6=88=91=E5=8F=91=E9=80=81=E4=BA=86?= =?UTF-8?q?=E4=B8=AA=E6=B6=88=E6=81=AF=20=E4=BD=A0=E6=94=B6=E5=BE=97?= =?UTF-8?q?=E5=88=B0=E5=90=97=20=E5=9C=A8=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=9D=97=E5=90=8E=E9=9D=A2=EF=BC=8C=E8=A1=A8=E6=A0=BC=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BA=86=E5=89=8D=20100=20=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E6=88=AA=E6=96=AD=E3=80=82=20=20=20=20=20=E8=BF=98=E9=9C=80?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=9AChatGPT=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=A9=BA=E5=9B=9E=E5=A4=8D=20=20=20=20=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E9=87=8D=E5=90=AF=E5=90=8E=EF=BC=8817:44=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E4=BC=9A=E8=AF=9D=E5=A4=B1=E6=95=88?= =?UTF-8?q?=EF=BC=8CChatGPT=20=E9=9C=80=E8=A6=81=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E3=80=82=E6=B5=8F=E8=A7=88=E5=99=A8=E5=9C=A8?= =?UTF-8?q?=20Docker=20=E5=86=85=E4=BB=A5=E9=9D=9E=E6=97=A0=E5=A4=B4?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=BF=90=E8=A1=8C=EF=BC=8C=E4=BD=A0=E9=9C=80?= =?UTF-8?q?=E8=A6=81=EF=BC=9A=20=20=20=20=201.=20=E9=80=9A=E8=BF=87=20WebU?= =?UTF-8?q?I=20=E7=99=BB=E5=BD=95=EF=BC=9A=E8=AE=BF=E9=97=AE=20http://127.?= =?UTF-8?q?0.0.1:18080/admin/vnc=EF=BC=88WebSocket=20VNC=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86=EF=BC=89=EF=BC=8C=E5=9C=A8=20ChatGPT=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95=20=20=20=20=202.?= =?UTF-8?q?=20=E6=88=96=E4=BD=BF=E7=94=A8=E7=99=BB=E5=BD=95=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=EF=BC=9A=E5=81=9C=E6=AD=A2=E5=AE=B9=E5=99=A8=E5=90=8E?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=20docker=20compose=20run=20-e=20EXTRA=5FARGS?= =?UTF-8?q?=3D"-login"=20webai-2api=EF=BC=8C=E7=99=BB=E5=BD=95=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/registry.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/registry.js b/src/backend/registry.js index 00cb4a7..de77800 100644 --- a/src/backend/registry.js +++ b/src/backend/registry.js @@ -307,7 +307,13 @@ class AdapterRegistry { return 'image'; } - const model = adapter.models.find(m => m.id === modelKey); + let actualModelKey = modelKey; + if (modelKey.includes('/')) { + const [, extracted] = modelKey.split('/', 2); + actualModelKey = extracted; + } + + const model = adapter.models.find(m => m.id === actualModelKey); return model?.type || 'image'; } From c7bb2e088eaec2b4bc5685bc20d1181902bb08e3 Mon Sep 17 00:00:00 2001 From: haiming Date: Sun, 10 May 2026 19:18:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=EF=BC=9A=E6=A8=A1=E5=9E=8B=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=AF=86=E5=88=AB=20openclaw=20=E6=8E=A5=E5=85=A5deep?= =?UTF-8?q?seek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/adapter/deepseek_text.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/backend/adapter/deepseek_text.js b/src/backend/adapter/deepseek_text.js index 77bff4e..fdd71c8 100644 --- a/src/backend/adapter/deepseek_text.js +++ b/src/backend/adapter/deepseek_text.js @@ -310,14 +310,14 @@ export const manifest = { // 模型列表 models: [ - { id: 'deepseek', imagePolicy: 'forbidden' }, - { id: 'deepseek-thinking', imagePolicy: 'forbidden', thinking: true }, - { id: 'deepseek-search', imagePolicy: 'forbidden', search: true }, - { id: 'deepseek-thinking-search', imagePolicy: 'forbidden', thinking: true, search: true }, - { id: 'deepseek-expert', imagePolicy: 'forbidden' }, - { id: 'deepseek-thinking-expert', imagePolicy: 'forbidden', thinking: true }, - { id: 'deepseek-search-expert', imagePolicy: 'forbidden', search: true }, - { id: 'deepseek-thinking-search-expert', imagePolicy: 'forbidden', thinking: true, search: true }, + { id: 'deepseek', imagePolicy: 'forbidden', type: 'text' }, + { id: 'deepseek-thinking', imagePolicy: 'forbidden', thinking: true, type: 'text' }, + { id: 'deepseek-search', imagePolicy: 'forbidden', search: true, type: 'text' }, + { id: 'deepseek-thinking-search', imagePolicy: 'forbidden', thinking: true, search: true, type: 'text' }, + { id: 'deepseek-expert', imagePolicy: 'forbidden', type: 'text' }, + { id: 'deepseek-thinking-expert', imagePolicy: 'forbidden', thinking: true, type: 'text' }, + { id: 'deepseek-search-expert', imagePolicy: 'forbidden', search: true, type: 'text' }, + { id: 'deepseek-thinking-search-expert', imagePolicy: 'forbidden', thinking: true, search: true, type: 'text' }, ], // 无需导航处理器