Check the output links are hallucinations from AI (#139)

* feat: check output links if a hallucination from AI
This commit is contained in:
JeffJiang
2025-05-15 10:39:53 +08:00
committed by GitHub
parent 25e7b86f02
commit bf4820c68f
6 changed files with 88 additions and 14 deletions

View File

@@ -377,3 +377,14 @@ export function useLastFeedbackMessageId() {
);
return waitingForFeedbackMessageId;
}
export function useToolCalls() {
return useStore(
useShallow((state) => {
return state.messageIds
?.map((id) => getMessage(id)?.toolCalls)
.filter((toolCalls) => toolCalls != null)
.flat();
}),
);
}