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

Updating example to not use new api #33

Merged
merged 1 commit into from
Dec 4, 2022

Conversation

nahakiole
Copy link
Contributor

/** Use {@link OpenAiService#createCompletion(CompletionRequest)} and {@link CompletionRequest#model}instead */
@Deprecated
public CompletionResult createCompletion(String engineId, CompletionRequest request)

The example in the readme uses the old completion, which should be updated as it is the one people probably use at first.
I've also formatted it so after pasting it into an editor you won't get syntax errors. (Added semicolon and made API key a string)

@TheoKanning TheoKanning merged commit 0caab13 into TheoKanning:main Dec 4, 2022
@TheoKanning
Copy link
Owner

Thank you!

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.

None yet

3 participants