Update google could bom from 26.33.0 to 26.34.0
- fix gemini and ollama chat properties documentation.
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -114,7 +114,7 @@
|
||||
<jackson.version>2.16.1</jackson.version>
|
||||
<djl.version>0.26.0</djl.version>
|
||||
<onnxruntime.version>1.17.0</onnxruntime.version>
|
||||
<com.google.cloud.version>26.33.0</com.google.cloud.version>
|
||||
<com.google.cloud.version>26.34.0</com.google.cloud.version>
|
||||
<qdrant.version>1.7.1</qdrant.version>
|
||||
<spring-retry.version>2.0.5</spring-retry.version>
|
||||
|
||||
|
||||
@@ -61,7 +61,6 @@ NOTE: The `options` properties are based on the link:https://github.com/jmorganc
|
||||
| Property | Description | Default
|
||||
|
||||
| spring.ai.ollama.chat.enabled | Enable Ollama chat client. | true
|
||||
| spring.ai.ollama.chat.model (DEPRECATED) | The name of the model to use. Deprecated use the `spring.ai.ollama.chat.options.model` instead | mistral
|
||||
| spring.ai.ollama.chat.options.model | The name of the https://github.com/ollama/ollama?tab=readme-ov-file#model-library[supported models] to use. | mistral
|
||||
| spring.ai.ollama.chat.options.numa | Whether to use NUMA. | false
|
||||
| spring.ai.ollama.chat.options.num-ctx | Sets the size of the context window used to generate the next token. | 2048
|
||||
@@ -134,7 +133,7 @@ Add a `application.properties` file, under the `src/main/resources` directory, t
|
||||
[source,application.properties]
|
||||
----
|
||||
spring.ai.ollama.base-url=http://localhost:11434
|
||||
spring.ai.ollama.chat.model=mistral
|
||||
spring.ai.ollama.chat.options.model=mistral
|
||||
spring.ai.ollama.chat.options.temperature=0.7
|
||||
----
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ The prefix `spring.ai.vertex.ai.gemini.chat` is the property prefix that lets yo
|
||||
|====
|
||||
| Property | Description | Default
|
||||
|
||||
| spring.ai.vertex.ai.gemini.chat.model | This is the https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini[Vertex AI Gemini Chat model] to use | gemini-pro-vision
|
||||
| spring.ai.vertex.ai.gemini.chat.options.model | This is the https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini[Vertex AI Gemini Chat model] to use | gemini-pro-vision
|
||||
| spring.ai.vertex.ai.gemini.chat.options.temperature | Controls the randomness of the output. Values can range over [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied, while a value closer to 0.0 will typically result in less surprising responses from the generative. This value specifies default to be used by the backend while making the call to the generative. | 0.8
|
||||
| spring.ai.vertex.ai.gemini.chat.options.topK | The maximum number of tokens to consider when sampling. The generative uses combined Top-k and nucleus sampling. Top-k sampling considers the set of topK most probable tokens. | -
|
||||
| spring.ai.vertex.ai.gemini.chat.options.topP | The maximum cumulative probability of tokens to consider when sampling. The generative uses combined Top-k and nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least topP. | -
|
||||
|
||||
@@ -35,7 +35,7 @@ public class OllamaChatAutoConfigurationTests {
|
||||
new ApplicationContextRunner().withPropertyValues(
|
||||
// @formatter:off
|
||||
"spring.ai.ollama.base-url=TEST_BASE_URL",
|
||||
"spring.ai.ollama.chat.model=MODEL_XYZ",
|
||||
"spring.ai.ollama.chat.options.model=MODEL_XYZ",
|
||||
"spring.ai.ollama.chat.options.temperature=0.55",
|
||||
"spring.ai.ollama.chat.options.topP=0.56",
|
||||
"spring.ai.ollama.chat.options.topK=123")
|
||||
|
||||
@@ -37,7 +37,6 @@ import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Description;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.Assert.assertThat;
|
||||
|
||||
@EnabledIfEnvironmentVariable(named = "VERTEX_AI_GEMINI_PROJECT_ID", matches = ".*")
|
||||
@EnabledIfEnvironmentVariable(named = "VERTEX_AI_GEMINI_LOCATION", matches = ".*")
|
||||
|
||||
Reference in New Issue
Block a user