Skip to content

Commit 8b13145

Browse files
committed
fix(frontend): correctly handle modelIDs containing slashes
1 parent 6d961cc commit 8b13145

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/hooks/useOpenCode.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?:
344344
};
345345

346346
if (model) {
347-
const [providerID, modelID] = model.split("/");
348-
if (providerID && modelID) {
347+
const [providerID, ...rest] = model.split("/");
348+
if (providerID && rest.length > 0) {
349349
requestData.model = {
350350
providerID,
351-
modelID,
351+
modelID: rest.join("/"),
352352
};
353353
}
354354
}

0 commit comments

Comments
 (0)