File tree Expand file tree Collapse file tree 2 files changed +0
-43
lines changed
src/main/java/org/wise/portal/presentation/web/controllers Expand file tree Collapse file tree 2 files changed +0
-43
lines changed Original file line number Diff line number Diff line change 66import java .io .OutputStreamWriter ;
77import java .net .HttpURLConnection ;
88import 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 ;
139import org .springframework .beans .factory .annotation .Autowired ;
1410import org .springframework .core .env .Environment ;
1511import 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" );
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments