From 0c43e24b669ea746ea86e39dc5313bc62617e7d5 Mon Sep 17 00:00:00 2001 From: jonghoonpark Date: Thu, 5 Jun 2025 22:02:19 +0900 Subject: [PATCH] docs: update huggingface doc (#3445) Signed-off-by: jonghoonpark (cherry picked from commit 925def272530c22da36e9d5c34fe97e74abc85be) --- .../main/antora/modules/ROOT/pages/api/chat/huggingface.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/huggingface.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/huggingface.adoc index 11c7ccf8f..7ee360943 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/huggingface.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/huggingface.adoc @@ -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()); ----