6 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
Joel 8d21cbc2da Merge pull request #71 from eltociear/patch-1
docs: update README.md
2024-08-07 18:29:39 +08:00
Joel 7bb19ed8ec Merge pull request #90 from langgenius/chore/hide-workflow-run-detail
chore: hide workflow run detail
2024-08-07 18:04:19 +08:00
Ikko Eltociear Ashimine df0ae34be1 docs: update README.md
trucated -> truncated
2024-05-09 15:15:24 +09:00
6 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
## Deploy on Vercel ## Deploy on Vercel
> ⚠️ If you are using [Vercel Hobby](https://vercel.com/pricing), your message will be trucated due to the limitation of vercel. > ⚠️ If you are using [Vercel Hobby](https://vercel.com/pricing), your message will be truncated due to the limitation of vercel.
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
+1 -1
View File
@@ -207,7 +207,7 @@ const Main: FC = () => {
isOpeningStatement: isShowPrompt, isOpeningStatement: isShowPrompt,
} }
if (calculatedIntroduction) if (calculatedIntroduction)
return [openStatement] return [openstatement]
return [] 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 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' import type { Feedbacktype } from '@/types/app'
export const sendChatMessage = async ( export const sendChatMessage = async (
@@ -60,3 +60,12 @@ export const updateFeedback = async ({ url, body }: { url: string; body: Feedbac
export const generationConversationName = async (id: string) => { export const generationConversationName = async (id: string) => {
return post(`conversations/${id}/name`, { body: { auto_generate: true } }) 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}`)
}