1
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
import { readCreationAgentSessionFromSse } from '../creation-agent';
|
||||
|
||||
const PUZZLE_AGENT_API_BASE = '/api/runtime/puzzle/agent/sessions';
|
||||
const PUZZLE_AGENT_SESSION_START_TIMEOUT_MS = 15000;
|
||||
const PUZZLE_AGENT_READ_RETRY: ApiRetryOptions = {
|
||||
maxRetries: 1,
|
||||
baseDelayMs: 180,
|
||||
@@ -47,6 +48,7 @@ export async function createPuzzleAgentSession(
|
||||
'创建拼图共创会话失败',
|
||||
{
|
||||
retry: PUZZLE_AGENT_WRITE_RETRY,
|
||||
timeoutMs: PUZZLE_AGENT_SESSION_START_TIMEOUT_MS,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user