Chore: chat log refactor (#5523)
This commit is contained in:
parent
47a5d4527b
commit
8294e97113
97 changed files with 165 additions and 5249 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { API_PREFIX, IS_CE_EDITION, PUBLIC_API_PREFIX } from '@/config'
|
||||
import Toast from '@/app/components/base/toast'
|
||||
import type { AnnotationReply, MessageEnd, MessageReplace, ThoughtItem } from '@/app/components/app/chat/type'
|
||||
import type { AnnotationReply, MessageEnd, MessageReplace, ThoughtItem } from '@/app/components/base/chat/chat/type'
|
||||
import type { VisionFile } from '@/types/app'
|
||||
import type {
|
||||
IterationFinishedResponse,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ export const fetchSuggestedQuestions = (appId: string, messageId: string, getAbo
|
|||
)
|
||||
}
|
||||
|
||||
export const fetchConvesationMessages = (appId: string, conversation_id: string, getAbortController?: any) => {
|
||||
export const fetchConversationMessages = (appId: string, conversation_id: string, getAbortController?: any) => {
|
||||
return get(`apps/${appId}/chat-messages`, {
|
||||
params: {
|
||||
conversation_id,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
del as consoleDel, get as consoleGet, patch as consolePatch, post as consolePost,
|
||||
delPublic as del, getPublic as get, patchPublic as patch, postPublic as post, ssePost,
|
||||
} from './base'
|
||||
import type { Feedbacktype } from '@/app/components/app/chat/type'
|
||||
import type { Feedbacktype } from '@/app/components/base/chat/chat/type'
|
||||
import type {
|
||||
AppConversationData,
|
||||
AppData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue