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

View File

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

View File

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