fix: bugs

This commit is contained in:
Dogtiti 2024-07-24 20:04:22 +08:00
parent 3935c725c9
commit 2a1c05a028
3 changed files with 3 additions and 3 deletions

View File

@ -63,6 +63,7 @@ export function SideBar(props: { className?: string }) {
}; };
sdStore.sendTask(data, () => { sdStore.sendTask(data, () => {
setParams(getModelParamBasicData(columns, params, true)); setParams(getModelParamBasicData(columns, params, true));
navigate(Path.SdNew);
}); });
}; };
@ -113,7 +114,7 @@ export function SideBar(props: { className?: string }) {
onClick={() => navigate(Path.Home)} onClick={() => navigate(Path.Home)}
/> />
} }
logo={<SDIcon width={38} height={38} />} logo={<SDIcon width={38} height={"100%"} />}
></SideBarHeader> ></SideBarHeader>
)} )}
<SideBarBody> <SideBarBody>

View File

@ -80,7 +80,6 @@ function getSdTaskStatus(item: any) {
}); });
}} }}
> >
{" "}
- {item.error} - {item.error}
</span> </span>
)} )}

View File

@ -87,7 +87,6 @@ export const REQUEST_TIMEOUT_MS = 60000;
export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown"; export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
export enum ServiceProvider { export enum ServiceProvider {
Stability = "Stability",
OpenAI = "OpenAI", OpenAI = "OpenAI",
Azure = "Azure", Azure = "Azure",
Google = "Google", Google = "Google",
@ -95,6 +94,7 @@ export enum ServiceProvider {
Baidu = "Baidu", Baidu = "Baidu",
ByteDance = "ByteDance", ByteDance = "ByteDance",
Alibaba = "Alibaba", Alibaba = "Alibaba",
Stability = "Stability",
} }
// Google API safety settings, see https://ai.google.dev/gemini-api/docs/safety-settings // Google API safety settings, see https://ai.google.dev/gemini-api/docs/safety-settings