Skip to content

A Spring Boot + angular + Spring AI (OpenAi)+ angular application that compiles with GraalVM and runs on a Raspberry Pi.

License

Notifications You must be signed in to change notification settings

mpalourdio/mpalourd-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI front

Introduction

Spring Boot / angular application that leverages Spring-AI with OpenAi. Github actions produce a linux/arm64 ready docker image that can run on a Raspberry Pi for example.

Don't forget to export the SPRING_AI_OPENAI_API_KEY environment variable.
You can also export SPRING_AI_OPENAI_CHAT_OPTIONS_MODEL for more convenience.

Steps

  • Build the image : mvn clean -Pnative spring-boot:build-image.
  • Run the image :
docker run -e SPRING_AI_OPENAI_CHAT_OPTIONS_MODEL=gpt-4o-mini \
  -e SPRING_AI_OPENAI_API_KEY=$SPRING_AI_OPENAI_API_KEY \
  -e SPRING_AI_OPENAI_CHAT_OPTIONS_MODEL=$SPRING_AI_OPENAI_CHAT_OPTIONS_MODEL \
  -e MPALOURDAI_DEFAULTSYSTEMFILEPATH=/container/defaultsystem.txt \
  -v /host/defaultsystem.txt:/container/defaultsystem.txt \
  -p 8080:8080 mpalourd-ai:X.X.X`

Image ready to test ?

Just grab this image generated from GitHub actions.

Failed to create the main Isolate. (code 24) ?

Follow these instructions for Raspberry PI 5.

About

A Spring Boot + angular + Spring AI (OpenAi)+ angular application that compiles with GraalVM and runs on a Raspberry Pi.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published