mirror of
https://gitee.com/dromara/hutool.git
synced 2025-09-20 02:29:47 +08:00
fix comment
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user