Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.05 KB

README.md

File metadata and controls

21 lines (18 loc) · 1.05 KB

ChatGPT API used with Java & Spring

How to get it running

Setup proxy

If you need a proxy to communicate with Internet (ChatGPT API is in Internet), adapt ChatGptController.java like this:

  • Replace: private HttpClient client = HttpClient.newHttpClient();
  • with: private HttpClient client = HttpClient.newBuilder().proxy(ProxySelector.of(InetSocketAddress.createUnresolved("proxy.host.com", 8080))).build();

More information