add AiChatServiceTest

This commit is contained in:
thinkgem
2025-06-07 16:11:53 +08:00
parent b55467312f
commit cb5957ee61
6 changed files with 137 additions and 6 deletions

View File

@@ -131,7 +131,7 @@ CREATE INDEX ON vector_store_1024 USING HNSW (embedding vector_cosine_ops);
pom.xml 中注释掉 `<artifactId>spring-ai-starter-model-openai</artifactId>`
打开注释 `<artifactId>spring-ai-starter-model-ollama</artifactId>`
启用 `Ollama` 本地模型进行测试,地址如下
启用 `Ollama` 本地模型,测试类:`AiChatServiceTest.java`,或测试地址
* 文本格式输出
- 源码位置CmsAiChatService.chatText(message)