From 84b1e63acd246e2c8afcaa69281070985499f287 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 12 Dec 2023 12:38:20 +0200 Subject: [PATCH] Use a default value for Ollama modelId --- .../langchain4j/ollama/runtime/config/ChatModelConfig.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ollama/runtime/src/main/java/io/quarkiverse/langchain4j/ollama/runtime/config/ChatModelConfig.java b/ollama/runtime/src/main/java/io/quarkiverse/langchain4j/ollama/runtime/config/ChatModelConfig.java index a514b1cb4..a69556cf7 100644 --- a/ollama/runtime/src/main/java/io/quarkiverse/langchain4j/ollama/runtime/config/ChatModelConfig.java +++ b/ollama/runtime/src/main/java/io/quarkiverse/langchain4j/ollama/runtime/config/ChatModelConfig.java @@ -9,8 +9,11 @@ public interface ChatModelConfig { /** - * Model to use + * Model to use. According to Ollama + * docs, + * the default value is {@code latest} */ + @WithDefault("latest") String modelId(); /**