fix: await grouping
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled

This commit is contained in:
WangDL 2026-05-23 09:39:18 +08:00
parent 22f6668077
commit f8a9ae224e

View File

@ -28,7 +28,7 @@ export class SiliconFlowProvider implements AiProvider {
signal: input.signal ?? AbortSignal.timeout(60_000), signal: input.signal ?? AbortSignal.timeout(60_000),
}); });
if (!resp.ok) throw new Error(`SiliconFlow ${resp.status}: ${await resp.text().slice(0, 200)}`); if (!resp.ok) throw new Error(`SiliconFlow ${resp.status}: ${(await resp.text()).slice(0, 200)}`);
const data = await resp.json(); const data = await resp.json();
const choice = data.choices?.[0]; const choice = data.choices?.[0];
return { return {