Skip to content

Commit 9cf06d7

Browse files
committed
update doc
1 parent 56007a5 commit 9cf06d7

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
5758
with 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
6063
spring:
@@ -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
6975
See [example](./example) for reference.

README_zh_CN.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
5962
spring:
@@ -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)。

0 commit comments

Comments
 (0)