feat: 上限文联想改为前端进行

This commit is contained in:
ChenZhaoYu committed 2023-02-14 10:04:32 +08:00
1 parent 5d1f8519c2
commit 86fcbbff0b
6 files changed
+69 -110

No files matched your search

+5 -2
View File
@@ -1,9 +1,12 @@
import { post } from '@/utils/request'
export function fetchChatAPI<T = any>(prompt: string) {
export function fetchChatAPI<T = any>(
prompt: string,
options?: { conversationId?: string; parentMessageId?: string },
) {
return post<T>({
url: '/chat',
data: { prompt },
data: { prompt, options },
})
}