|
|
@ -1,8 +1,6 @@
|
|
|
|
import type { GenericAbortSignal } from 'axios'
|
|
|
|
import type { GenericAbortSignal } from 'axios'
|
|
|
|
import { post } from '@/utils/request'
|
|
|
|
import { post } from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
|
|
export const controller = new AbortController()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function fetchChatAPI<T = any>(
|
|
|
|
export function fetchChatAPI<T = any>(
|
|
|
|
prompt: string,
|
|
|
|
prompt: string,
|
|
|
|
options?: { conversationId?: string; parentMessageId?: string },
|
|
|
|
options?: { conversationId?: string; parentMessageId?: string },
|
|
|
|