The sk-java-hello-world
console application demonstrates how to execute a semantic function.
The starter can be configured with a conf.properties
file in the project which holds api keys and other secrets and configurations.
Make sure you have an Open AI API Key or Azure Open AI service key.
Copy the example.conf.properties
file to a new file named conf.properties
. Then, copy those keys into the conf.properties
file.
If you are using Open AI:
client.openai.key=""
client.openai.organizationid=""
Or, if you are using Azure Open AI:
client.azureopenai.key=""
client.azureopenai.endpoint=""
client.azureopenai.deploymentname=""
Run the starter using maven:
mvn compile exec:java