mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
feat: feature/1.5-Data Integration
This commit is contained in:
@@ -320,6 +320,13 @@ const AiServiceInsideRouterCreate = () => {
|
||||
|
||||
const handlerSubmit: () => Promise<boolean> | undefined = () => {
|
||||
return drawerAddFormRef.current?.save()?.then((res: { id: string; config: string, type: string, provider: string }) => {
|
||||
getDefaultModelConfig({
|
||||
provider: res.provider,
|
||||
id: res.id,
|
||||
type: res.type,
|
||||
replaceDefaultLlm: false,
|
||||
setIcon: true
|
||||
})
|
||||
setDefaultLlm(
|
||||
(prev) =>
|
||||
({
|
||||
|
||||
Reference in New Issue
Block a user