Unverified 提交 1a39238e authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Use max retries 3 when there's no backup clients (#339)

上级 91cfbbe3
......@@ -60,7 +60,7 @@ export function streamTextWithBackup(params: StreamTextWithBackupParams): {
);
const { textStream } = streamText({
...rest,
maxRetries: 0,
maxRetries: i === modelClients.length - 1 ? 3 : 0,
model: currentModelClient.model,
abortSignal: attemptAbort.signal,
onError: (error) => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论