autogen icon indicating copy to clipboard operation
autogen copied to clipboard

#785 allows agents to utilise streaming even when they have a functio…

Open ragyabraham opened this issue 1 year ago • 2 comments

Why are these changes needed?

Currently, streaming is disabled when a function definition is associated with an agent for all messages. This means that whether an agent is about to execute a function or send a normal text-based message, they will not be able to utilise streaming.

Changes made

A small change has been made to the oai.client.py module.

These changes allow agents to utilise streaming for text-based messages, i.e. non-function calls, even when they have functions in their config.

Related issue number

#785

Checks

  • [ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
  • [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
  • [ ] I've made sure all auto checks have passed.

ragyabraham avatar Nov 28 '23 00:11 ragyabraham