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

Update testing-with-copilot.md #4672

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Update testing-with-copilot.md #4672

merged 1 commit into from
Dec 23, 2024

Conversation

mustafahsz
Copy link
Contributor

@mustafahsz mustafahsz commented Dec 23, 2024

The code was updated to use modern ES6 import syntax instead of require. Additionally, it now uses the OpenAI class directly instead of OpenAIApi and Configuration, simplifying the initialization process. This modernization improves readability and aligns with current JavaScript standards. No changes were made to the functionality.

Description

  • This pull request addresses the issue described here: #<4671>

In this pull request, I have changed the chat completions method to be able to use it with last version of openAI.

For features/enhancements:

  • I have added/updated the relevant references in the documentation file.

The code was updated to use modern ES6 import syntax instead of require. Additionally, it now uses the OpenAI class directly instead of OpenAIApi and Configuration, simplifying the initialization process. This modernization improves readability and aligns with current JavaScript standards. No changes were made to the functionality.
@mustafahsz mustafahsz requested a review from d4vidi as a code owner December 23, 2024 11:01
@asafkorem asafkorem merged commit 948a826 into wix:master Dec 23, 2024
1 check passed
@asafkorem
Copy link
Contributor

Thanks for the contribution @mustafahsz!

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.

2 participants