Skip to content

Commit dad1a60

Browse files
authored
fix(frontend): correctly handle modelIDs containing slashes (#186)
1 parent 8e90ba2 commit dad1a60

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
@@ -278,11 +278,11 @@ export const useSendPrompt = (opcodeUrl: string | null | undefined, directory?:
278278
};
279279

280280
if (model) {
281-
const [providerID, modelID] = model.split("/");
282-
if (providerID && modelID) {
281+
const [providerID, ...rest] = model.split("/");
282+
if (providerID && rest.length > 0) {
283283
requestData.model = {
284284
providerID,
285-
modelID,
285+
modelID: rest.join("/"),
286286
};
287287
}
288288
}

0 commit comments

Comments
 (0)