Skip to content

Commit 8928da4

Browse files
9uanhuospring-builds
authored andcommitted
docs: fix broken link to ChatModel (#3583)
Fixes #3583 Signed-off-by: Jionghui Zheng <9uanhuo@gmail.com> (cherry picked from commit 9682702)
1 parent 7200580 commit 8928da4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chatmodel.adoc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ This section provides a guide to the Spring AI Chat Model API interface and asso
1919

2020
=== ChatModel
2121

22-
Here is the link:https://github.com/spring-projects/spring-ai/blob/main/spring-ai-client-chat/src/main/java/org/springframework/ai/chat//model/ChatModel.java[ChatModel] interface definition:
22+
Here is the link:https://github.com/spring-projects/spring-ai/blob/main/spring-ai-model/src/main/java/org/springframework/ai/chat/model/ChatModel.java[ChatModel] interface definition:
2323

2424
[source,java]
2525
----
26-
public interface ChatModel extends Model<Prompt, ChatResponse> {
26+
public interface ChatModel extends Model<Prompt, ChatResponse>, StreamingChatModel {
2727
2828
default String call(String message) {...}
2929
@@ -82,7 +82,8 @@ The `Message` interface encapsulates a `Prompt` textual content, a collection of
8282

8383
The interface is defined as follows:
8484

85-
```java
85+
[source,java]
86+
----
8687
public interface Content {
8788
8889
String getText();
@@ -94,17 +95,18 @@ public interface Message extends Content {
9495
9596
MessageType getMessageType();
9697
}
97-
```
98+
----
9899

99100
The multimodal message types implement also the `MediaContent` interface providing a list of `Media` content objects.
100101

101-
```java
102+
[source,java]
103+
----
102104
public interface MediaContent extends Content {
103105
104106
Collection<Media> getMedia();
105107
106108
}
107-
```
109+
----
108110

109111
The `Message` interface has various implementations that correspond to the categories of messages that an AI model can process:
110112

0 commit comments

Comments
 (0)