mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(frontend): correctly handle modelIDs containing slashes (#186)
This commit is contained in:
1 parent
8e90ba2e6e
commit
dad1a608a1
1 file changed
+3
-3
@@ -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("/"),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user