Skip to content

Software Development at Program Tom LTD

Place for coding, programming, development and software in general.

Menu
  • Blog
  • PDF Booklets
  • Dev Utils & Content
  • Java Spring Boot Or Web Apps
  • English
    • български
    • English
    • Español
    • Português
    • हिन्दी
    • Русский
    • Deutsch
    • Français
    • Italiano
    • العربية
  • About Us
Menu

GPT – Spring Boot Micro Service

GPT - Spring Boot Micro Service

$49.90

Categories: Apps, GPT, Java, Spring (Boot) / Quarkus, Vaadin 24+
  • Description

Description

This product contains two packages – a minimal GPT (Generative Pre-trained Transformer) Spring Boot Micro Service and a Vaadin Web App that communicates with the first throught RabbitMQ Messaging Service. If you dought that it is import – read more on tha AI topic on my blog: https://programtom.com/dev/?s=chatgpt

This product uses the Open Source Open AI – Java API with some small tweaks and improvements. With setting up a simple API Key or passing it in the requests – you will be able to communicate with the Open AI Back-End. You will receive all functionality wrapped in @Service and exposed for using in your application via Rabbit MQ Json Messages. I could also add REST endpoints doing the same if you request.

Text /AI Chat/

You could use this feature currently implemented in the Spring Boot GPT Micro Service. It has been tuned to wait up to minute, because sometimes the request times out and you will not receive anything.

The JSON that you need to pass in should look like this:

{
 "userId":"asd",
 "question":"Ask ChatGPT Something",
 "":"",
 "apiKey": { "name" : "asd"},
 "languageModel": { "name" : "model name"},
}

    private String answer;
    private String error;

You will get back the same JSON, but with added either

{
 "userId":"asd", //.....
"answer" : "the response from open ai"
/// or 
"error": "timeout"
}

Audio & Image Generation and Recognition

Open AI has APIs for:

  • Text to Audio
  • Text to Speech (TTS)
  • Speech to Text (Whisper)

The GPT Micro Service has proof of concepts  with text to speech and text to image generation. They are not ready and linked to the Web App. I plan to polish these functionalities at some point, but you also could ping me if you need some of them. If you do so – you will get the discounted price as – when I personally integrate them – will raise the price.

Web App Screens

Because I use the app only internally – currently it has hard-coded login and commented integration – register/login – against a local database. I could removed it and add a Google Login plug-in. It is already part of another – Watermarking App: https://programtom.com/dev/product/image-watermark-maker-vaadin-web-app-micro-service/

The Web App stores it’s data in a Maria DB Database so you need to create the scheme: gpt_app. After that the app will auto-create it’s tables with the help of the setting spring.jpa.hibernate.ddl-auto=update

You have a screen where you could enter multiple Open AI – API Keys.

blank

After you have a key – you could hit refresh language models and the app will clear the models assigned to the key and fetch the available ones – from Open AI.

blank

And once you have an API Key and language models – you could go to the prompt section. Here you could choose from them and ask Chat GPT something. You have full control over language model selection. At the moment – Text to Speech and Text to Image are not working, but a Proof of Concept is implemented in the Micro Service App.

blank

And there is a history of previous Question and Answers – very much like in the Chat GPT interface.

blank

Here is an example response – when the timeout setting is set to low value:

blank

Text to Text

Chat is essentially text to text. In the latest update – the product allows passing some additional tunning parameters:

  • How long the responce to be
  • how repetitive/random

blank

Text To Image

The text to image language models are dall-e. Currently 2 and 3. After you’ve chosen it – you will be able to choose from variout parameters like:

  • The count of images,
  • format(currently only supported url),
  • image size,
  • style of the picture…

 

blank

Text to Audio

Text to speech allows you to generate audio from the provided text. It is currently limited to around 4000 characters.

In the latest version this package supports selection from:

  • voice tember
  • language
  • audio format

blank

Update 23.02.2024:

An unified package has been added to this product containing both MS configured and connected to each other with docker-compose configuration.

Update 18.03.2024:

More Integrations – with text to image, text to voice, additional parameters – entered from the front-end

Related products

  • File Explorer Vaadin Web App

    File Explorer Vaadin Web App

    $9.99
    Add to cart
  • License for - Backuper Pro Version - Executable Build

    License for – Backuper Pro Version – Executable Build

    $2.00
    Read more
  • File Waiter

    File Waiter – Serve or Upload Files Between a Computer & Other Devices

    $0.99
    Add to cart
  • Email Sender Micro Service

    Email Sender Micro Service Kafka Consumer [Source Code]

    $4.99
    Add to cart
  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)

Tags

Algorithms (9) crypto (29) flutterdev (39) General (86) Java (7) QR & Bar Codes (3) Software Dev Choices (33) Spring Boot (1) standards (1) Theme (3) User Authentication & Authorization (9) User Experience (10) Utilities (19) WordPress (11)

Product categories

  • All Technologies (87)
    • Flutter Apps (26)
    • GPT (4)
    • Java (39)
    • Native Android (3)
    • PHP (9)
    • Spring (Boot) / Quarkus (36)
    • Utils (15)
    • Vaadin 24+ (28)
    • Vaadin 8 (1)
  • Apps (18)
    • Employees DB (1)
    • Notes (6)
    • Personal Budget (1)
    • Recipes Book (1)
    • Stuff Organizer (1)
    • To-Do (2)
  • PDF Books (3)
  • Source Code Generators (8)

Recent Posts

  • Prompt-to-Production: How AI is Forcing Us to Build Higher Quality Software
  • Debug Web View Flutter App
  • Skipping AI? You’re a Relic – Time to Evolve or Perish!
  • 2026 Flutter Launch Blueprint: Your 10-Step Checklist to App Store Domination
  • Product Requirements Document – for different software development levels

Post Categories

  • Apps (25)
  • ChatGPT (27)
  • Choosing a Framework (38)
  • Flutter (281)
  • Graphical User Interface (14)
  • Marketing (119)
  • Software Development (292)
  • Spring (45)
  • StartUp (22)
  • Uncategorized (14)
  • Uncategorized (4)
  • Vaadin (16)