Spaces:
Sleeping
Sleeping
File size: 420 Bytes
712f4ea 93ed073 712f4ea | 1 2 3 4 5 6 7 8 9 10 11 12 | import { apiClient } from './client';
import type { AIAnalysisRequest, AIAnalysisResponse } from '../types';
export const aiApi = {
analyze: async (payload: AIAnalysisRequest): Promise<AIAnalysisResponse> => {
const { data } = await apiClient.post<AIAnalysisResponse>('/api/ai/analyze', payload, {
timeout: 0, // No timeout — wait indefinitely until the AI model responds
});
return data;
},
};
|