Skip to content

Commit

Permalink
feat(#128): url typo
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jun 10, 2024
1 parent 375de4b commit 3aa4dd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public final class OpenRequest implements Scalar<Request> {
@Override
public Request value() throws Exception {
return new JdkRequest(
"https://api.openai.com/v1/completions"
"https://api.openai.com/v1/chat/completions"
).method("POST")
.header("Authorization", String.format("Bearer %s", this.token))
.header("Content-Type", "application/json")
Expand Down

0 comments on commit 3aa4dd7

Please sign in to comment.