docs: update huggingface doc (#3445)

Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
(cherry picked from commit 925def2725)
This commit is contained in:
jonghoonpark
2025-06-05 22:02:19 +09:00
committed by Spring Builds
parent 343ab5c94e
commit 0c43e24b66

View File

@@ -113,7 +113,7 @@ The prefix `spring.ai.huggingface` is the property prefix that lets you configur
| spring.ai.huggingface.chat.api-key | API Key to authenticate with the Inference Endpoint. | -
| spring.ai.huggingface.chat.url | URL of the Inference Endpoint to connect to | -
| spring.ai.huggingface.chat.enabled (Removed and no longer valid) | Enable Hugging Face chat model. | true
| spring.ai.model.chat (Removed and no longer valid) | Enable Hugging Face chat model. | huggingface
| spring.ai.model.chat | Enable Hugging Face chat model. | huggingface
|====
== Sample Controller (Auto-configuration)
@@ -186,5 +186,5 @@ HuggingfaceChatModel chatModel = new HuggingfaceChatModel(apiKey, url);
ChatResponse response = this.chatModel.call(
new Prompt("Generate the names of 5 famous pirates."));
System.out.println(response.getGeneration().getResult().getOutput().getContent());
System.out.println(response.getResult().getOutput().getText());
----