Fixing Kotlin sample applications
Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
This commit is contained in:
@@ -19,7 +19,7 @@ class KotlinFunctionCallbackApplication {
|
||||
val chatClient = chatClientBuilder.build();
|
||||
val response = chatClient
|
||||
.prompt("What are the weather conditions in San Francisco, Tokyo, and Paris? Find the temperature in Celsius for each of the three locations.")
|
||||
.tools("WeatherInfo")
|
||||
.toolNames("WeatherInfo")
|
||||
.call().chatResponse();
|
||||
|
||||
println("Response: $response")
|
||||
|
||||
@@ -2,4 +2,7 @@ spring.application.name=rag-with-kotlin
|
||||
spring.ai.vectorstore.pgvector.initialize-schema=true
|
||||
spring.sql.init.mode=always
|
||||
server.port=8090
|
||||
spring.docker.compose.lifecycle-management=start_only
|
||||
spring.docker.compose.lifecycle-management=start_and_stop
|
||||
spring.docker.compose.file=kotlin/rag-with-kotlin/compose.yaml
|
||||
|
||||
spring.ai.openai.api-key=<YOUR-OPENAI-API-KEY>
|
||||
|
||||
Reference in New Issue
Block a user