openai / openai-dotnet

The official .NET library for the OpenAI API
https://www.nuget.org/packages/OpenAI
MIT License
707 stars 60 forks source link

AssistantClient.CreateMessage() doesn't support using the Assistant role #79

Closed trrwilson closed 6 days ago

trrwilson commented 1 week ago

This capability was added to the spec just a few months ago: https://github.com/openai/openai-openapi/commit/9fcd900b58005549ab77d3e8af20f58473ce4d07

The implementation currently hard-codes the User role (which made sense prior to the above) and needs to support creating an Assistant message.

trrwilson commented 6 days ago

Fixed by: #81