File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ Add Spring Boot starter:
5353</dependency >
5454```
5555
56- This will create a ` ChatClient ` bean. Default ` ChatOptions ` can be configured
56+ This will create a ` ChatClient ` bean and an ` EmbeddingClient ` bean.
57+ Default ` ChatOptions ` can be configured
5758with the configuration key ` spring.ai.dashscope.chat.options ` .
59+ Default ` EmbeddingOptions ` can be configured with the configuration
60+ key ` spring.ai.dashscope.embedding.options ` .
5861
5962``` yaml
6063spring :
@@ -64,6 +67,9 @@ spring:
6467 options :
6568 model : qwen-plus
6669 temperature : 0.2
70+ embedding :
71+ options :
72+ model : text-embedding-v2
6773` ` `
6874
6975See [example](./example) for reference.
Original file line number Diff line number Diff line change @@ -52,8 +52,11 @@ var response = client.call("hello");
5252</dependency >
5353```
5454
55- 会自动创建一个 ` ChatClient ` 类型的 Bean。默认的 ` ChatOptions `
56- 可以通过配置项 ` spring.ai.dashscope.chat.options ` 来配置。
55+ 会自动创建一个 ` ChatClient ` 类型的 Bean 和一个 ` EmbeddingClient ` 类型的
56+ Bean。默认的 ` ChatOptions `
57+ 可以通过配置项 ` spring.ai.dashscope.chat.options `
58+ 来配置。默认的 ` EmbeddingOptions `
59+ 可以通过配置项 ` spring.ai.dashscope.embedding.options ` 来配置。
5760
5861``` yaml
5962spring :
@@ -63,6 +66,9 @@ spring:
6366 options :
6467 model : qwen-plus
6568 temperature : 0.2
69+ embedding :
70+ options :
71+ model : text-embedding-v2
6672` ` `
6773
6874可以参考[代码示例](./example)。
You can’t perform that action at this time.
0 commit comments