mirror of https://github.com/hwchase17/langchain
langchain_openai[patch]: Invoke callback prior to yielding token (#16909)
All models should be calling the callback for new token prior to yielding the token. Not doing this can cause callbacks for downstream steps to be called prior to the callback for the new token; causing issues in astream_events APIs and other things that depend in callback ordering being correct. We need to make this change for all chat models.pull/16915/head
parent
b1a847366c
commit
a265878d71
Loading…
Reference in New Issue