We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a388b commit 1ffc2e8Copy full SHA for 1ffc2e8
src/main/java/git/tracehub/codereview/action/openai/OpenRequest.java
@@ -50,10 +50,10 @@ public final class OpenRequest implements Scalar<Request> {
50
@Override
51
public Request value() throws Exception {
52
return new JdkRequest(
53
- "https://api.openai.com/v1/chat/completions"
+ "https://api.openai.com/v1/completions"
54
).method("POST")
55
- .header("Authorization", String.format("Bearer %s", this.token))
56
.header("Content-Type", "application/json")
+ .header("Authorization", String.format("Bearer %s", this.token))
57
.body()
58
.set(this.body.value())
59
.back();
0 commit comments