Skip to content
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

[C#] chore: Bump Azure.AI.OpenAI to v1.0.0-beta.12 #1219

Merged
merged 4 commits into from
Jan 30, 2024

Conversation

singhk97
Copy link
Collaborator

Linked issues

closes: #1218

Details

To use the Kernel.Memory library as the RAG solution for the C# Teams Chef bot, the Teams AI Library must update it's dependency of Azure.AI.OpenAI to match that of Kernel.Memory, i.e v1.0.0-beta.12.

This PR introduces changes to migrate Azure.AI.OpenAI from v1.0.0-beta.9 to v1.0.0-beta.12.

Context

Azure.AI.OpenAI introduced breaking changes

  • Removed ChatMessage and replaced it with ChatResponseMessage and ChatRequestMessage. ChatRequestMessage is an abstract class with 5 concrete types, user, function, assistant, tool, system.

Change details

Major

  • Updated internal ChatMessage class without introducing any breaking changes.
  • Updated implementation of internal mapping methods ToChatMessage, ToChatRequestMessage.
    • Added unit tests
  • Added integration test for OpenAIModel class.

Minor

  • Resolved warnings by reformatting code
  • Resolved warnings by changing the severity config.

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@singhk97 singhk97 changed the title Kavin/bump aoai package [C#] chore: Bump Azure.AI.OpenAI to v1.0.0-beta.12 Jan 30, 2024
@singhk97 singhk97 merged commit 94b02ae into main Jan 30, 2024
14 checks passed
@singhk97 singhk97 deleted the kavin/bump-aoai-package branch January 30, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C#] Bump Azure.AI.OpenAI package to 1.0.0-beta.12
2 participants