You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easily worked around by passing the needed attributes into the generator and restoring them when it starts, but it's a surprising behavior that should be either changed or documented.
The text was updated successfully, but these errors were encountered:
When I use the
stream_with_context
decorator on a streaming generator, attributes set on theg
object earlier in the request aren't visible in the generator. Someone else has described this already on stackoverflow and given an example.This is easily worked around by passing the needed attributes into the generator and restoring them when it starts, but it's a surprising behavior that should be either changed or documented.
The text was updated successfully, but these errors were encountered: