mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
usage info ignored by _handle_generate_stream_response #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smalon on GitHub (Feb 9, 2026).
it seems to be a bug in
python/dify_plugin/interfaces/model/openai_compatible/llm.py
key code:
if we got chunks like this:
usage Info will not be read because of the continue logic.
i have fixed this in our local dify server, yet i'm not sure if this is a bug.