Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 650 Bytes

File metadata and controls

24 lines (16 loc) · 650 Bytes

Spring AI Open Router Example

How to Run with Gradle

Runs a version of this application that is compatible for use with OpenRouter. You will need to obtain an API key.

Before launching the app:

  • Create a config folder which would be a sibling of the build folder. Create a file named creds.yml inside that folder. Add your own API key into that file.
spring:
  ai:
    openai:
      api-key: {REDACTED-1}

Replace {REDACTED-1} above with your OpenRouter API key.

Open a terminal shell and execute

❯ ./gradlew bootRun