xpadro / spring-ai

Samples based on Spring AI framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-ai

Samples based on Spring AI framework



Table of Contents

  1. Setup

  2. Text Generation

    2.1 Chat Completion Intro




1. Setup

The samples in this repository use OpenAI API as the implementation for Spring AI. In order to be able to make calls to the API, you will need a paid account in OpenAI Developer Platform and a generated API key.



2. Text Generation

2.1 Chat Completion Intro


Basic example on how to use Spring Chat Completion API.

On startup, the application automatically calls the underlying API with a default Tell me a joke message.

About

Samples based on Spring AI framework


Languages

Language:Java 100.0%