mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-07-06 16:11:56 +08:00
Merge pull request #220 from APIParkLab/feature/1.6
fix: service configuration LLM API error
This commit is contained in:
@@ -241,8 +241,18 @@ function BasicLayout({ project = 'core' }: { project: string }) {
|
||||
headerTitleRender={() => (
|
||||
<div className="w-[192px] flex items-center">
|
||||
<img className="h-[20px] cursor-pointer " src={Logo} onClick={() => navigator(mainPage)} />
|
||||
<a className="align-text-top" href="https://github.com/APIParkLab/APIPark" target="_blank" className="ml-[5px] h-[25px] relative">
|
||||
<img src="https://img.shields.io/github/stars/APIParkLab/APIPark?style=social" className='absolute top-[6px]' width={75} alt="" />
|
||||
<a
|
||||
className="align-text-top ml-[5px] h-[25px] relative"
|
||||
href="https://github.com/APIParkLab/APIPark"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<img
|
||||
src="https://img.shields.io/github/stars/APIParkLab/APIPark?style=social"
|
||||
className="absolute top-[6px]"
|
||||
width={75}
|
||||
alt=""
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -87,10 +87,12 @@ const SystemConfig = forwardRef<SystemConfigHandle>((_, ref) => {
|
||||
if (serviceId && configuredProvider.length > 0) {
|
||||
const providerID = form.getFieldValue('provider')
|
||||
const provider = configuredProvider?.find((item: any) => item.id === providerID)
|
||||
if (provider?.type === 'local') {
|
||||
getLocalModelList(false)
|
||||
} else {
|
||||
getOnlineModelList(provider?.id, false)
|
||||
if (provider) {
|
||||
if (provider?.type === 'local') {
|
||||
getLocalModelList(false)
|
||||
} else {
|
||||
getOnlineModelList(provider?.id, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user