fix: await grouping
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
This commit is contained in:
parent
22f6668077
commit
f8a9ae224e
@ -28,7 +28,7 @@ export class SiliconFlowProvider implements AiProvider {
|
||||
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 choice = data.choices?.[0];
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user