import { fetchWithAbort } from '@/request/fetchWithAbort'

/**
 *
 * AI助手对话, SSE
 * @returns
 * @param data
 */
export const aiChat: (data: any) => Promise<any> = (data) => {
  return fetchWithAbort(`/finyx-bot/api/v1/chat/stream`, { ...data })
}

export default {
  aiChat
}
