~/talk

Calling AI Tools from Java

links:none on file
slides:none on file

Shows concrete Java code that calls OpenAI (ChatGPT, Whisper, DALL·E), Anthropic Claude vision, Mistral (same API as OpenAI) and local Olama models (llama3, 5 3) via plain HTTP: uses Java 21 HTTP Client with Gson/Jackson, maps requests to records and sealed interfaces with compact constructors for validation, handles Whisper 25MB transcription chunks, generates MP3 via the TTS endpoint tts1/tts1_HD, saves/plays audio (JLayer) and decodes Base64 images; examples compile and run, token pricing ~ $10 per million input tokens.

AI-written summary · about

  1. 0:00Introduction to AI in Java
  2. 8:10AI tools as REST services
  3. 15:43Text to speech demo
  4. 31:26Combining models with sealed interfaces
  5. 40:40Chat API integration
  6. 52:07Advanced features and tools
  7. 57:52Resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.