From 2a1c05a0283539275b98387a2fe203301f122873 Mon Sep 17 00:00:00 2001
From: Dogtiti <499960698@qq.com>
Date: Wed, 24 Jul 2024 20:04:22 +0800
Subject: [PATCH] fix: bugs
---
app/components/sd/sd-sidebar.tsx | 3 ++-
app/components/sd/sd.tsx | 1 -
app/constant.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/components/sd/sd-sidebar.tsx b/app/components/sd/sd-sidebar.tsx
index 4510a7c460f..b49d7f7bbc0 100644
--- a/app/components/sd/sd-sidebar.tsx
+++ b/app/components/sd/sd-sidebar.tsx
@@ -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={}
+ logo={}
>
)}
diff --git a/app/components/sd/sd.tsx b/app/components/sd/sd.tsx
index c4ed6fa3213..f35d0e0cd57 100644
--- a/app/components/sd/sd.tsx
+++ b/app/components/sd/sd.tsx
@@ -80,7 +80,6 @@ function getSdTaskStatus(item: any) {
});
}}
>
- {" "}
- {item.error}
)}
diff --git a/app/constant.ts b/app/constant.ts
index e5da3b9e1d2..4130d6704ad 100644
--- a/app/constant.ts
+++ b/app/constant.ts
@@ -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