Skip to content

Conversation

@FelipeAdachi
Copy link
Contributor

This PR adds compatibility for Openai python client v1

  • tested with openai 1.3.7
  • also tested with current pinned openai version of 0.27.10

This change adds a wrapper around create chat_completion (openai and azure) and create completions, which checks the installed openai version and calls the proper apis.

Copy link
Collaborator

@jamie256 jamie256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jamie256 jamie256 merged commit 9a50eee into main Dec 8, 2023
@jamie256 jamie256 deleted the dev/felipe/openai-client branch December 8, 2023 20:21
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