mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Merge branch 'feature/1.5-cx' into 'main'
feat: feature/1.5-Data Integration See merge request apipark/APIPark!178
This commit is contained in:
@@ -147,10 +147,11 @@ const AiServiceInsideRouterCreate = () => {
|
||||
...prev,
|
||||
provider: aiModel?.provider,
|
||||
id: aiModel?.id,
|
||||
config: aiModel.config
|
||||
config: aiModel.config,
|
||||
type: aiModel?.type
|
||||
}) as AiProviderDefaultConfig & { config: string }
|
||||
)
|
||||
getDefaultModelConfig(aiModel?.provider)
|
||||
aiModel?.type !== 'local' && getDefaultModelConfig(aiModel?.provider)
|
||||
} else {
|
||||
message.error(msg || $t(RESPONSE_TIPS.error))
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ const AiServiceRouterModelConfig = forwardRef<AiServiceRouterModelConfigHandle,
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
setModelType(entity.type as 'online' | 'local')
|
||||
if (entity.type === 'online') {
|
||||
getProviderList()
|
||||
getLlmList(entity.provider)
|
||||
|
||||
Reference in New Issue
Block a user