You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai/src/main/java/org/springframework/ai/model/openai/autoconfigure/OpenAiEmbeddingProperties.java
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai/src/test/java/org/springframework/ai/model/openai/autoconfigure/OpenAiChatAutoConfigurationIT.java
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai/src/test/java/org/springframework/ai/model/openai/autoconfigure/OpenAiChatPropertiesTests.java
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -141,4 +141,35 @@ public void chatToolChoiceStringValuesTest() {
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai/src/test/java/org/springframework/ai/model/openai/autoconfigure/OpenAiEmbeddingAutoConfigurationIT.java
Copy file name to clipboardExpand all lines: auto-configurations/models/spring-ai-autoconfigure-model-openai/src/test/java/org/springframework/ai/model/openai/autoconfigure/OpenAiEmbeddingPropertiesTests.java
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
*
30
30
* @author Christian Tzolov
31
31
* @author Sebastien Deleuze
32
+
* @author guan xu
32
33
*/
33
34
publicclassOpenAiEmbeddingPropertiesTests {
34
35
@@ -86,4 +87,33 @@ public void embeddingOptionsTest() {
Copy file name to clipboardExpand all lines: spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/openai-embeddings.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,7 @@ The prefix `spring.ai.openai.embedding` is property prefix that configures the `
152
152
| spring.ai.openai.embedding.encoding-format | The format to return the embeddings in. Can be either float or base64. | -
153
153
| spring.ai.openai.embedding.user | A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. | -
154
154
| spring.ai.openai.embedding.dimensions | The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models. | -
155
+
| spring.ai.openai.embedding.extra-body | Additional body properties to send to the OpenAI-compatible provider. | -
155
156
|====
156
157
157
158
NOTE: You can override the common `spring.ai.openai.base-url` and `spring.ai.openai.api-key` for the `ChatModel` and `EmbeddingModel` implementations.
0 commit comments