Client.chats.stream() fails the first time it's called. An empty stream is returned and the subsequent for try await chat in stream { ... } will never loop.
However, if Client.chats.create() is invoked before the first Client.chats.stream(), then the first Client.chats.stream() will succeed.
Client.chats.stream()
fails the first time it's called. An empty stream is returned and the subsequentfor try await chat in stream { ... }
will never loop.However, if
Client.chats.create()
is invoked before the firstClient.chats.stream()
, then the firstClient.chats.stream()
will succeed.