From dad1a608a1bd09fe6f1f3a4f6bcc4dcf0cbf59cc Mon Sep 17 00:00:00 2001 From: LazuliKao Date: Thu, 16 Apr 2026 22:09:43 +0800 Subject: [PATCH] fix(frontend): correctly handle modelIDs containing slashes (#186) --- frontend/src/hooks/useOpenCode.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/hooks/useOpenCode.ts b/frontend/src/hooks/useOpenCode.ts index 3566138d..4f169dcb 100644 --- a/frontend/src/hooks/useOpenCode.ts +++ b/frontend/src/hooks/useOpenCode.ts @@ -278,11 +278,11 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?: }; if (model) { - const [providerID, modelID] = model.split("/"); - if (providerID && modelID) { + const [providerID, ...rest] = model.split("/"); + if (providerID && rest.length > 0) { requestData.model = { providerID, - modelID, + modelID: rest.join("/"), }; } }