Skip to content

Commit ee55536

Browse files
author
vesladm1
committed
Clean up ChatGptcontroller and remove local patch file
1 parent 46a367c commit ee55536

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

src/main/java/org/wise/portal/presentation/web/controllers/ChatGptcontroller.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
import java.io.OutputStreamWriter;
77
import java.net.HttpURLConnection;
88
import java.net.URL;
9-
import org.json.JSONObject;
10-
import org.json.JSONException;
11-
import org.json.JSONArray;
12-
import org.wise.portal.dao.ObjectNotFoundException;
139
import org.springframework.beans.factory.annotation.Autowired;
1410
import org.springframework.core.env.Environment;
1511
import org.springframework.security.access.annotation.Secured;
@@ -35,7 +31,6 @@ protected String sendChatMessage(@RequestBody String body) {
3531
throw new RuntimeException("OPENAI_API_KEY is not set");
3632
}
3733
try {
38-
System.out.println("sendChatMessage from wise api server");
3934
URL url = new URL("https://api.openai.com/v1/chat/completions");
4035
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
4136
connection.setRequestMethod("POST");

wise_api_local_changes.patch

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)