Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Compatibility mods to call code-davinci-002 model #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DwayneGibbs
Copy link

This Pull Request addresses two connectivity issues reported. These issues are #1 and #2.

First, the engine endpoint is deprecated. See here for reference. This deprecation required a new method for addressing the filter that was previously utilized. The new method added, Get-ModerationClassification, makes a request to the moderation endpoint to check whether the content being sent complies to the OpenAI's content policy. If content is not flagged, then process continues to the updated Get-CodexCompletion method.

The Get-CodexCompletion method had to be updated to comply with the deprecated engine endpoint.

@github-staff github-staff deleted a comment May 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant