Skip to content

Latest commit

 

History

History

sk-java-hello-world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Semantic Kernel Java Hello World Starter

The sk-java-hello-world console application demonstrates how to execute a semantic function.

Prerequisites

Configuring the starter

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=""

Running the starter

Run the starter using maven:

mvn compile exec:java