Skip to content

Commit 1b0680b

Browse files
committed
docs: fix return type
1 parent e497f79 commit 1b0680b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/sections/java-quarkus/06-chat-api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public class ChatResource {
161161
@POST
162162
@Consumes({"application/json"})
163163
@Produces({"application/json"})
164-
public String chat(ChatRequest chatRequest) {
164+
public ChatResponse chat(ChatRequest chatRequest) {
165165

166166
String question = chatRequest.messages.get(chatRequest.messages.size() - 1).content;
167167

@@ -185,7 +185,7 @@ public class ChatResource {
185185
@POST
186186
@Consumes({"application/json"})
187187
@Produces({"application/json"})
188-
public String chat(ChatRequest chatRequest) {
188+
public ChatResponse chat(ChatRequest chatRequest) {
189189

190190
// Embed the question (convert the user's question into vectors that represent the meaning)
191191
// ...
@@ -224,7 +224,7 @@ public class ChatResource {
224224
Don't combine sources, list each source separately, for example: [info1.txt][info2.pdf].
225225
""";
226226

227-
public String chat(ChatRequest chatRequest) {
227+
public ChatResponse chat(ChatRequest chatRequest) {
228228

229229
// ...
230230
}
@@ -260,7 +260,7 @@ public class ChatResource {
260260
@POST
261261
@Consumes({"application/json"})
262262
@Produces({"application/json"})
263-
public String chat(ChatRequest chatRequest) {
263+
public ChatResponse chat(ChatRequest chatRequest) {
264264

265265
// Embed the question (convert the user's question into vectors that represent the meaning)
266266
// Find relevant embeddings from Qdrant based on the user's question
@@ -292,7 +292,7 @@ public class ChatResource {
292292
@POST
293293
@Consumes({"application/json"})
294294
@Produces({"application/json"})
295-
public String chat(ChatRequest chatRequest) {
295+
public ChatResponse chat(ChatRequest chatRequest) {
296296

297297
// Embed the question (convert the user's question into vectors that represent the meaning)
298298
// Find relevant embeddings from Qdrant based on the user's question

0 commit comments

Comments
 (0)