Skip to content

Commit caad3ed

Browse files
committed
2 parents 18d9b28 + 31a8b38 commit caad3ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/KoalaWiki/KoalaWarehouse/GenerateThinkCatalogue/GenerateThinkCatalogueService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ 3. Use catalog.Read after each MultiEdit to verify success before next operation
182182
var inputTokenCount = 0;
183183
var outputTokenCount = 0;
184184

185+
retry:
185186
// 添加超时控制
186187
var cts = new CancellationTokenSource(TimeSpan.FromMinutes(20));
187188

188-
retry:
189189
try
190190
{
191191
// 流式获取响应 - 添加取消令牌和异常处理
@@ -346,4 +346,4 @@ private static int CalculateDelay(int retryCount, int consecutiveFailures)
346346

347347
return (int)Math.Min(totalDelay, MaxDelayMs);
348348
}
349-
}
349+
}

web-site/src/pages/home/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const HomePage = () => {
8181
})
8282
}
8383

84-
if (response && response.success) {
84+
if (response && response.code === 200) {
8585
toast.success(t('repository.form.submitSuccess'))
8686
refresh()
8787
setShowAddModal(false)
@@ -262,4 +262,4 @@ export const HomePage = () => {
262262
)
263263
}
264264

265-
export default HomePage
265+
export default HomePage

0 commit comments

Comments
 (0)