diff --git a/kotlin/kotlin-function-callback/src/main/kotlin/com/example/kotlin_function_callback/KotlinFunctionCallbackApplication.kt b/kotlin/kotlin-function-callback/src/main/kotlin/com/example/kotlin_function_callback/KotlinFunctionCallbackApplication.kt index 1d0e01a..406ddca 100644 --- a/kotlin/kotlin-function-callback/src/main/kotlin/com/example/kotlin_function_callback/KotlinFunctionCallbackApplication.kt +++ b/kotlin/kotlin-function-callback/src/main/kotlin/com/example/kotlin_function_callback/KotlinFunctionCallbackApplication.kt @@ -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") diff --git a/kotlin/rag-with-kotlin/src/main/resources/application.properties b/kotlin/rag-with-kotlin/src/main/resources/application.properties index 391a6b7..c73c926 100644 --- a/kotlin/rag-with-kotlin/src/main/resources/application.properties +++ b/kotlin/rag-with-kotlin/src/main/resources/application.properties @@ -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 \ No newline at end of file +spring.docker.compose.lifecycle-management=start_and_stop +spring.docker.compose.file=kotlin/rag-with-kotlin/compose.yaml + +spring.ai.openai.api-key=