fix:取消suggestion的请求
This commit is contained in:
parent
8065dcdd91
commit
df9279469e
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue