microsoft / teams-ai

SDK focused on building AI based applications and extensions for Microsoft Teams and other Bot Framework channels
MIT License
407 stars 176 forks source link

Rewrite OpenAI Model to use official completions client for streaming #1593

Closed corinagum closed 3 months ago

Stevenic commented 5 months ago

The OpenAIModel class currently uses our own custom request logic for calling OpenAI & Azure OpenAI. This is fine for completions but streaming support is a bit more complicated so I'm re-writing the class to use the official OpenAI client. This will result in a few configuration options being depreciated and replaced with new options but I'm adding logic to properly map the deprecated config options.