Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.4 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.4 KB

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.