Fix: Prevent model selection modal from appearing for LM Studio provider
When using the LM Studio provider, the model selection modal was incorrectly appearing. This commit prevents the modal from appearing when the provider is set to LM Studio. This ensures that the user experience is consistent across all providers.
This commit is contained in:
parent
ddb8993f17
commit
1300945b75
@ -35,8 +35,11 @@ export const OpenAIApp = () => {
|
|||||||
})
|
})
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
message.success(t("addSuccess"))
|
message.success(t("addSuccess"))
|
||||||
setOpenaiId(data)
|
if (provider !== "lmstudio") {
|
||||||
setOpenModelModal(true)
|
setOpenaiId(data)
|
||||||
|
setOpenModelModal(true)
|
||||||
|
}
|
||||||
|
setProvider("custom")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -75,8 +78,6 @@ export const OpenAIApp = () => {
|
|||||||
provider
|
provider
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
setProvider("custom")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleEdit = (record: any) => {
|
const handleEdit = (record: any) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user