import request from '@/utils/aiRequest';
import { AxiosPromise } from 'axios';
import { AiChatConfig, AiChatRequest, AiChatResponse } from './types';

export const sendAiChatMessage = (data: AiChatRequest): AxiosPromise<AiChatResponse> => {
  return request({
    url: '/api/chat',
    method: 'post',
    data
  });
};
