Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 400 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 400 Bytes

springai

Spring AI - OpenAI Integration

To compile the project

export OpenAI key as:

Export an environment variable in PowerShell

  • setx OPENAI_API_KEY "your_api_key_here"'

then add this exported environment variable to the application properties:

  • spring.ai.openai.api-key=${OPENAI_API_KEY}

OR goto RUN Configurations in IntelliJ Idea and add OPENAI_API_KEY environment variable.