fix comment

This commit is contained in:
Looly
2025-08-21 11:42:07 +08:00
parent 03a7312e23
commit 3d6c1e115e

View File

@@ -16,9 +16,10 @@
/** /**
* 对Ollama的封装实现. * 对Ollama的封装实现.
* * <p>
* 使用方法: * 使用方法:
* // 创建AI服务 * // 创建AI服务
* <pre>{@code
* OllamaService aiService = AIServiceFactory.getAIService( * OllamaService aiService = AIServiceFactory.getAIService(
* new AIConfigBuilder(ModelName.OLLAMA.getValue()) * new AIConfigBuilder(ModelName.OLLAMA.getValue())
* .setApiUrl("http://localhost:11434") * .setApiUrl("http://localhost:11434")
@@ -33,10 +34,10 @@
* messageList.add(new Message("user","你能帮我做什么")); * messageList.add(new Message("user","你能帮我做什么"));
* *
* // 输出对话结果 * // 输出对话结果
* System.out.println(aiService.chat(messageList)); * Console.log(aiService.chat(messageList));
* }</pre>
* *
* @author yangruoyu-yumeisoft * @author yangruoyu-yumeisoft
* @since 5.8.40 * @since 5.8.40
*/ */
package cn.hutool.ai.model.ollama; package cn.hutool.ai.model.ollama;