(v5) If there is no onResponse
callback, how can I execute custom code when llm responds?
#6972
Answered
by
NeroBlackstone
NeroBlackstone
asked this question in
Help
-
I noticed But... what is replacement ?? How can I execute custom code when llm responds? |
Beta Was this translation helpful? Give feedback.
Answered by
NeroBlackstone
Jul 2, 2025
Replies: 1 comment 8 replies
-
Okay, my workaround (svelte): $effect(() => {
if (useChat.status === 'streaming') {
untrack(() => onResponse());
}
});
function onResponse() {
// callback here!
} |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
NeroBlackstone
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, my workaround (svelte):