Skip to content

Commit 1ffc2e8

Browse files
author
h1alexbel
committed
fix(#131): typo
1 parent 50a388b commit 1ffc2e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/git/tracehub/codereview/action/openai/OpenRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ public final class OpenRequest implements Scalar<Request> {
5050
@Override
5151
public Request value() throws Exception {
5252
return new JdkRequest(
53-
"https://api.openai.com/v1/chat/completions"
53+
"https://api.openai.com/v1/completions"
5454
).method("POST")
55-
.header("Authorization", String.format("Bearer %s", this.token))
5655
.header("Content-Type", "application/json")
56+
.header("Authorization", String.format("Bearer %s", this.token))
5757
.body()
5858
.set(this.body.value())
5959
.back();

0 commit comments

Comments
 (0)