Skip to content

Commit 0c43e24

Browse files
dev-jonghoonparkspring-builds
authored andcommitted
docs: update huggingface doc (#3445)
Signed-off-by: jonghoonpark <[email protected]> (cherry picked from commit 925def2)
1 parent 343ab5c commit 0c43e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The prefix `spring.ai.huggingface` is the property prefix that lets you configur
113113
| spring.ai.huggingface.chat.api-key | API Key to authenticate with the Inference Endpoint. | -
114114
| spring.ai.huggingface.chat.url | URL of the Inference Endpoint to connect to | -
115115
| spring.ai.huggingface.chat.enabled (Removed and no longer valid) | Enable Hugging Face chat model. | true
116-
| spring.ai.model.chat (Removed and no longer valid) | Enable Hugging Face chat model. | huggingface
116+
| spring.ai.model.chat | Enable Hugging Face chat model. | huggingface
117117
|====
118118

119119
== Sample Controller (Auto-configuration)
@@ -186,5 +186,5 @@ HuggingfaceChatModel chatModel = new HuggingfaceChatModel(apiKey, url);
186186
ChatResponse response = this.chatModel.call(
187187
new Prompt("Generate the names of 5 famous pirates."));
188188
189-
System.out.println(response.getGeneration().getResult().getOutput().getContent());
189+
System.out.println(response.getResult().getOutput().getText());
190190
----

0 commit comments

Comments
 (0)