Skip to content

Commit b886462

Browse files
HyunSangHannamsoo2
authored andcommitted
Enable auto complete for 'spring.ai.vertex.ai.gemini.chat.options' (spring-projects#3101)
Signed-off-by: Hyunsang Han <[email protected]> Signed-off-by: minsoo.nam <[email protected]>
1 parent a0de762 commit b886462

File tree

1 file changed

+3
-0
lines changed
  • auto-configurations/models/spring-ai-autoconfigure-model-vertex-ai/src/main/java/org/springframework/ai/model/vertexai/autoconfigure/gemini

1 file changed

+3
-0
lines changed

auto-configurations/models/spring-ai-autoconfigure-model-vertex-ai/src/main/java/org/springframework/ai/model/vertexai/autoconfigure/gemini/VertexAiGeminiChatProperties.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@
1919
import org.springframework.ai.vertexai.gemini.VertexAiGeminiChatModel;
2020
import org.springframework.ai.vertexai.gemini.VertexAiGeminiChatOptions;
2121
import org.springframework.boot.context.properties.ConfigurationProperties;
22+
import org.springframework.boot.context.properties.NestedConfigurationProperty;
2223

2324
/**
2425
* Configuration properties for Vertex AI Gemini Chat.
2526
*
2627
* @author Christian Tzolov
28+
* @author Hyunsang Han
2729
* @since 0.8.0
2830
*/
2931
@ConfigurationProperties(VertexAiGeminiChatProperties.CONFIG_PREFIX)
@@ -36,6 +38,7 @@ public class VertexAiGeminiChatProperties {
3638
/**
3739
* Vertex AI Gemini API generative options.
3840
*/
41+
@NestedConfigurationProperty
3942
private VertexAiGeminiChatOptions options = VertexAiGeminiChatOptions.builder()
4043
.temperature(0.7)
4144
.candidateCount(1)

0 commit comments

Comments
 (0)