Find answers from the community

Updated last year

Hey friends. Has anyone gotten streaming

At a glance

A community member is asking if anyone has gotten streaming to work with the OpenAIAgent. In the comments, another community member shares some code to try streaming a chat response, but it's unclear if that works. Another community member expresses uncertainty about whether the code works or not.

Hey friends. Has anyone gotten streaming to work with the OpenAIAgent?
L
c
3 comments
Plain Text
response = agent.stream_chat("Hello!")

for token in response.response_gen:
    print(token, end="", flush=True)
That doesn't work?
If that works I’m a moron haha. Let me try.
Add a reply
Sign up and join the conversation on Discord