Spaces:
Sleeping
Sleeping
Naufal Arhab
Fix: completely remove timeouts (set timeout: 0 in Axios and timeout=None in httpx) to allow unlimited waiting for AI models
93ed073 Download frontend/src/api/ai.ts from agus1111/Perps-Terminal: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/agus1111/Perps-Terminal/resolve/main/frontend/src/api/ai.ts
- Command line
-
hf download hf://spaces/agus1111/Perps-Terminal/frontend/src/api/ai.ts
-
curl -L -o ai.ts https://huggingface.co/spaces/agus1111/Perps-Terminal/resolve/main/frontend/src/api/ai.ts
420 Bytes
| 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; | |
| }, | |
| }; | |