Skip to content
Discussion options

You must be logged in to vote

Okay, my workaround (svelte):

  $effect(() => {
    if (useChat.status === 'streaming') {
      untrack(() => onResponse());
    }
  });
  function onResponse() {
      // callback here!
  }

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@NeroBlackstone
Comment options

@lgrammel
Comment options

@NeroBlackstone
Comment options

@cacoos
Comment options

@pedrocarnevale
Comment options

Answer selected by NeroBlackstone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants