fix(frontend): correctly handle modelIDs containing slashes (#186)

This commit is contained in:
LazuliKao authored and GitHub committed 2026-04-16 10:09:43 -04:00
1 parent 8e90ba2e6e
commit dad1a608a1
1 file changed
+3 -3
+3 -3
View File
@@ -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("/"),
};
}
}