fix:取消suggestion的请求

This commit is contained in:
肖应宇 2026-04-02 09:09:47 +08:00
parent 8065dcdd91
commit df9279469e
1 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,8 @@ export function InputBox({
}, [pendingSuggestion, requestFormSubmit, textInput]);
useEffect(() => {
/*
// 暂时禁用 suggestions 接口(/api/threads/{thread_id}/suggestions
if (!threadId || isNewThread || disabled) return;
const controller = new AbortController();
setFollowupsHidden(false);
@ -289,6 +291,7 @@ export function InputBox({
.finally(() => setFollowupsLoading(false));
return () => controller.abort();
*/
}, [disabled, isNewThread, threadId]);
return (