From 8d39409ace272f87dbd7c48e48ab15cd070d5673 Mon Sep 17 00:00:00 2001
From: Patrick Del Conte
Date: Thu, 9 May 2024 15:44:02 +0200
Subject: [PATCH] fix configuration path in ConfigValidationException message
The path has to be the same as in `LangChain4jVertexAiGeminiConfig`
---
.../vertexai/runtime/gemini/VertexAiGeminiRecorder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vertex-ai-gemini/runtime/src/main/java/io/quarkiverse/langchain4j/vertexai/runtime/gemini/VertexAiGeminiRecorder.java b/vertex-ai-gemini/runtime/src/main/java/io/quarkiverse/langchain4j/vertexai/runtime/gemini/VertexAiGeminiRecorder.java
index 7d2b5adf7..eca5e7cc7 100644
--- a/vertex-ai-gemini/runtime/src/main/java/io/quarkiverse/langchain4j/vertexai/runtime/gemini/VertexAiGeminiRecorder.java
+++ b/vertex-ai-gemini/runtime/src/main/java/io/quarkiverse/langchain4j/vertexai/runtime/gemini/VertexAiGeminiRecorder.java
@@ -80,7 +80,7 @@ private static ConfigValidationException.Problem[] createConfigProblems(String k
private static ConfigValidationException.Problem createConfigProblem(String key, String modelName) {
return new ConfigValidationException.Problem(
- "SRCFG00014: The config property quarkus.langchain4j.vertexai%s%s is required but it could not be found in any config source"
+ "SRCFG00014: The config property quarkus.langchain4j.vertexai.gemini%s%s is required but it could not be found in any config source"
.formatted(
NamedModelUtil.isDefault(modelName) ? "." : ("." + modelName + "."), key));
}