3 Commits

Author SHA1 Message Date
ly 3d796bda54 增加便捷运行和切换环境变量批处理 2024-08-29 10:09:15 +08:00
ly 82988d5204 修改变量名称错误BUG 2024-08-29 10:08:13 +08:00
ly bce67e4e18 增加删除和重命名会话函数 2024-08-29 10:07:25 +08:00
5 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ const Main: FC = () => {
isOpeningStatement: isShowPrompt,
}
if (calculatedIntroduction)
return [openStatement]
return [openstatement]
return []
}
+2
View File
@@ -0,0 +1,2 @@
del .env.local
copy .env1.local .env.local
+2
View File
@@ -0,0 +1,2 @@
del .env.local
copy .env2.local .env.local
+1
View File
@@ -0,0 +1 @@
npm run dev
+10 -1
View File
@@ -1,5 +1,5 @@
import type { IOnCompleted, IOnData, IOnError, IOnFile, IOnMessageEnd, IOnMessageReplace, IOnNodeFinished, IOnNodeStarted, IOnThought, IOnWorkflowFinished, IOnWorkflowStarted } from './base'
import { get, post, ssePost } from './base'
import { get, post, del, ssePost } from './base'
import type { Feedbacktype } from '@/types/app'
export const sendChatMessage = async (
@@ -60,3 +60,12 @@ export const updateFeedback = async ({ url, body }: { url: string; body: Feedbac
export const generationConversationName = async (id: string) => {
return post(`conversations/${id}/name`, { body: { auto_generate: true } })
}
export const renameConversation = async (id: string, name: string) => {
return post(`conversations/${id}/name`, { body: { name: name, auto_generate: false } })
}
export const deleteConversation = async (id: string) => {
return del(`conversations/${id}`)
}