no message
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
export const AI_REQUEST_TIMEOUT = 5 * 60 * 1000
|
||||
|
||||
export const AI_REQUEST_CONFIG = {
|
||||
retryCount: 0,
|
||||
ignoreCancel: true
|
||||
}
|
||||
|
||||
export function withAiRequestTimeout<T extends Record<string, any>>(options: T): T & { timeout: number } {
|
||||
return {
|
||||
...options,
|
||||
timeout: AI_REQUEST_TIMEOUT
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user