fix:取消suggestion的请求
This commit is contained in:
parent
8065dcdd91
commit
df9279469e
|
|
@ -263,6 +263,8 @@ export function InputBox({
|
||||||
}, [pendingSuggestion, requestFormSubmit, textInput]);
|
}, [pendingSuggestion, requestFormSubmit, textInput]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
/*
|
||||||
|
// 暂时禁用 suggestions 接口(/api/threads/{thread_id}/suggestions)
|
||||||
if (!threadId || isNewThread || disabled) return;
|
if (!threadId || isNewThread || disabled) return;
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
setFollowupsHidden(false);
|
setFollowupsHidden(false);
|
||||||
|
|
@ -289,6 +291,7 @@ export function InputBox({
|
||||||
.finally(() => setFollowupsLoading(false));
|
.finally(() => setFollowupsLoading(false));
|
||||||
|
|
||||||
return () => controller.abort();
|
return () => controller.abort();
|
||||||
|
*/
|
||||||
}, [disabled, isNewThread, threadId]);
|
}, [disabled, isNewThread, threadId]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue