How To Create Simple ChatGPT Java Swing App (LangChain4j)

Опубликовано: 27 Июнь 2026
на канале: Born To Geek
634
8

In this video you will learn how to create a simple ChatGPT-like application in Java Swing using LangChain4j library. Version 0.30.0 of this library uses GPT model "gpt-3.5-turbo" as default, if you don't specify your own.

Link to Java project:
https://github.com/BornToGeek1/youtub...

Program (JAR) download link:
https://github.com/BornToGeek1/youtub...
To download file just click on "View raw" link or "Download raw file" icon.

Notes on using "demo" OpenAI API key:
"Be aware that when using the demo key, all requests to the OpenAI API go through our proxy, which injects the real key before forwarding your request to the OpenAI API. We do not collect or use your data in any way. The demo key has a quota and should only be used for demonstration purposes."
Source: https://docs.langchain4j.dev/get-star...

Timeline:
0:00 Intro
0:12 ChatGPT demo
0:49 Maven project (dependencies)
1:14 Code explanation