АРЧ ЮИ - остановка прогона через гуй
This commit is contained in:
@@ -9,6 +9,7 @@ export interface OpenAIRequestConfig {
|
||||
apiKey: string;
|
||||
model: string;
|
||||
baseUrl?: string;
|
||||
abortSignal?: AbortSignal;
|
||||
temperature?: number;
|
||||
maxOutputTokens?: number;
|
||||
}
|
||||
@@ -491,7 +492,8 @@ export class OpenAIResponsesClient {
|
||||
response = await fetch(url, {
|
||||
method,
|
||||
headers,
|
||||
body: method === "POST" ? JSON.stringify(payload ?? {}) : undefined
|
||||
body: method === "POST" ? JSON.stringify(payload ?? {}) : undefined,
|
||||
signal: config.abortSignal
|
||||
});
|
||||
} catch (error) {
|
||||
lastNetworkError = error;
|
||||
|
||||
Reference in New Issue
Block a user