Skip to content

Hotfix - ChatCompletionImpl as ITextCompletion Regression Fix and Added Tests - #1062

Merged
Adrian Bonar (adrianwyatt) merged 11 commits into
microsoft:mainfrom
rogerbarreto:hotfix/addazurechatcompletion-fix
May 18, 2023
Merged

Adrian Bonar (adrianwyatt) merged 11 commits into
microsoft:mainfrom
rogerbarreto:hotfix/addazurechatcompletion-fix

Conversation

@rogerbarreto

@rogerbarreto Roger Barreto (rogerbarreto) commented May 18, 2023 •

Copy link
Copy Markdown
Member

Motivation and Context

With the most recent changes in ITextCompletion interface a small regression was introduced in the Chat Completion implementation of both OpenAI/AzureOpenAI where they were not calling the Chat completion endpoints but the text ones for a Chat Model.

Description

  • Fix for the current implementaions
  • Added new Integration Tests to ensure this regression won't happen again.
  • Added configuration detail for Chat model for OpenAI and AzureOpenAi: ChatModelId, ChatDeploymentName respectively.
  • Updated IT Tests Readme.
  • ⚠️ This change adds gpt-4 model as part of our defaut configuration for chat as text integration tests

Contribution Checklist

@github-actions github-actions Bot added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels May 18, 2023
@rogerbarreto Roger Barreto (rogerbarreto) added bug Something isn't working PR: ready for review All feedback addressed, ready for reviews PR: ready to merge PR has been approved by all reviewers, and is ready to merge. kernel.core labels May 18, 2023
@adrianwyatt
Adrian Bonar (adrianwyatt) merged commit c89243a into microsoft:main May 18, 2023
Shawn Callegari (shawncal) pushed a commit to johnoliver/semantic-kernel that referenced this pull request May 19, 2023
…ed Tests (microsoft#1062)

### Motivation and Context

With the most recent changes in ITextCompletion interface a small
regression was introduced in the Chat Completion implementation of both
OpenAI/AzureOpenAI where they were not calling the Chat completion
endpoints but the text ones for a Chat Model.

### Description

- Fix for the current implementaions
- Added new Integration Tests to ensure this regression won't happen
again.
- Added configuration detail for Chat model for OpenAI and AzureOpenAi:
`ChatModelId`, `ChatDeploymentName` respectively.
- Updated IT Tests Readme.
- ⚠️ This change adds gpt-4 model as part of our default configuration
for chat as text integration tests
@rogerbarreto
Roger Barreto (rogerbarreto) deleted the hotfix/addazurechatcompletion-fix branch December 5, 2023 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready for review All feedback addressed, ready for reviews PR: ready to merge PR has been approved by all reviewers, and is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants