Newbie strugging with Hello World #995
Unanswered
michaelfranz
asked this question in
Q&A
Replies: 1 comment
-
|
Do you have the Embabel openai starter as a dependency? Maven example: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've spend several hours trying to get the simplest possible Java app working using Gradle (Kotlin). API keys are in place, as are all the requisite dependencies as far as I can tell. I've taken a long hard look at 'embabel-agent-examples', which uses Maven and seems to get away with listing very few dependencies. Having failed with the minimal list, I added additional dependencies to no avail.
The app builds yet bombs on startup with the message:
Here is some log output (which precedes the above, which may or may not be relevant, I can't tell:
Here are the application.properties:
And here's an extract from the Gradle build file (one of countless failed attempts):
I want to stress that the env var OPENAI_API_KEY is definitely set when the app runs. No question about this.
If someone can point out the error here, or provide a working Gradle build file (if that's the problem) I would be most grateful.
Beta Was this translation helpful? Give feedback.
All reactions