-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: add parsing of (Azure) OpenAI into classes, including ChatMessages #2442
Conversation
0ce6e99
to
d93d063
Compare
0b81a19
to
d85d8e9
Compare
Marking as draft while this is broken down into smaller pieces. We should also make there is an accompanying issue to make sure we maintain parity across .Net and python. |
Makes sense @lemillermicrosoft it did get a bit big. I did hear there were already pieces of this (using a object, rather then a tuple for the response) in the .net version, but did one did go a lot further, should I create the issue for this or will you? |
Thanks for your PR and contribution. For now, we are closing old drafts. Please re-open as appropriate. |
Motivation and Context
One note, most of the completion results and other classes are based on the openai api definitions, which are probably the most prevalent, but a mapping of these and HF and other ai services is needed.
Description
completion results
,usage_result
,finish_reason
,completion_content
and appropriate base classes as well as thechat
versions of these, and a Role class.connectors\ai\openai\models
to store subclasses of above, with specific classmethods that create these items from openai_objects.complete_chat_async
and the like)Contribution Checklist