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

Fix to allow repeat evals on azureai #845

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Fix to allow repeat evals on azureai #845

merged 6 commits into from
Nov 15, 2024

Conversation

ole-jorgensen
Copy link
Contributor

This PR contains:

  • New features
  • Changes to dev-tools e.g. CI config / github tooling
  • Docs
  • Bug fixes
  • Code refactor

What is the current behavior? (You can also link to an open issue here)

Repeated calls to azureai models leads to an async error, which stems from the AzureAI ChatCompletionsClient needing to be manually closed

What is the new behavior?

Creates the client in the generate block, and closes it at the end of the generation.
Also added a regression test.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

@jjallaire-aisi jjallaire-aisi merged commit 0e4ac8b into main Nov 15, 2024
9 checks passed
@jjallaire-aisi jjallaire-aisi deleted the azureai_fix branch November 15, 2024 10:12
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.

3 participants