Skip to content

Commit 58ae24c

Browse files
committed
Fixing Kotlin sample applications
Signed-off-by: Soby Chacko <[email protected]>
1 parent 8897ba6 commit 58ae24c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

kotlin/kotlin-function-callback/src/main/kotlin/com/example/kotlin_function_callback/KotlinFunctionCallbackApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class KotlinFunctionCallbackApplication {
1919
val chatClient = chatClientBuilder.build();
2020
val response = chatClient
2121
.prompt("What are the weather conditions in San Francisco, Tokyo, and Paris? Find the temperature in Celsius for each of the three locations.")
22-
.tools("WeatherInfo")
22+
.toolNames("WeatherInfo")
2323
.call().chatResponse();
2424

2525
println("Response: $response")

kotlin/rag-with-kotlin/src/main/resources/application.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ spring.application.name=rag-with-kotlin
22
spring.ai.vectorstore.pgvector.initialize-schema=true
33
spring.sql.init.mode=always
44
server.port=8090
5-
spring.docker.compose.lifecycle-management=start_only
5+
spring.docker.compose.lifecycle-management=start_and_stop
6+
spring.docker.compose.file=kotlin/rag-with-kotlin/compose.yaml
7+
8+
spring.ai.openai.api-key=<YOUR-OPENAI-API-KEY>

0 commit comments

Comments
 (0)