主要变更: - 移除Hermes智能体及相关回调服务 - 新增知识库RAG、同步、调度、规范化和索引任务服务 - 重构orchestrator服务,增强运行时聊天功能 - 更新前端聊天、政策制度、设置等页面样式和逻辑 - 更新expense_claims和document_intelligence服务 - 删除llm_wiki相关服务和测试文件 - 更新docker-compose配置和启动脚本
24 lines
807 B
JavaScript
24 lines
807 B
JavaScript
import assert from 'node:assert/strict'
|
|
import { readFileSync } from 'node:fs'
|
|
|
|
const settingsScript = readFileSync(new URL('../src/views/scripts/SettingsView.js', import.meta.url), 'utf8')
|
|
const settingsView = readFileSync(new URL('../src/views/SettingsView.vue', import.meta.url), 'utf8')
|
|
|
|
function testLlmSectionReplacesVlmWithReranker() {
|
|
assert.doesNotMatch(settingsView, /VLM 模型/)
|
|
assert.match(settingsView, /Reranker 模型配置/)
|
|
assert.match(settingsScript, /rerankerProvider/)
|
|
}
|
|
|
|
function testRerankerCardRendersAfterEmbeddingCard() {
|
|
assert.match(settingsView, /Embedding 模型配置[\s\S]*Reranker 模型配置/)
|
|
}
|
|
|
|
function run() {
|
|
testLlmSectionReplacesVlmWithReranker()
|
|
testRerankerCardRendersAfterEmbeddingCard()
|
|
console.log('settings llm section tests passed')
|
|
}
|
|
|
|
run()
|