提供方成本级/视觉传通+内部一发式视野终点
AiProvider Captain 读取/选取成本 Tier + 支持Vision。 提供者 服务收益 选择 Vision Provider(orgId,分级)。 **************** 运行一发 视觉完成重用 Org 的提供者/适应器(没有会话/RAG/工具)。 新建助理内部管理员 POST/api/ai...
为匿名访客添加包含 RAG 整合的公开 AI 聊天端点
在营销网站添加/api/ai/公会/会场的匿名AI聊天端点. 用于公共路径的旁通OTK 认证过滤器. 使用快速和 RAG 有成员Type=null,用于只公开的KB文章能见度.
通过 RAG 搜索观众范围 KB 结果传递成员Type
从成员仓库解析成员类型并将其纳入RAG搜索请求 因此矢量 DB可以通过观众能见度过滤出KB文章.
Wire ConversationContextService for sliding window context management
Trims conversation history to fit model's context window before sending to LLM. Keeps recent messages verbatim, summarizes older ones.
Include clickable source links in RAG context for AI chat
Update RagClient to embed markdown links in the context sent to the AI model. KB articles link to /kb/{guid}, notes link to /notes?id={noteId}. Instructs the mo...
Pass memberId to RAG for note-aware AI chat
Add extractMemberId to SessionHelper. Update RagClient to send memberId in search requests so RAG returns both org KB articles and the member's own AI-enabled n...
Add RAG context injection for Knowledge Base in AI chat
- New RagClient service for calling RAGService semantic search - ChatOrchestrationService injects KB context before AI responds - Configurable via AiOrgSettings...
Support enabling/disabling models via PUT /api/ai/providers/{id}
When the frontend sends a 'models' array of model IDs in the provider update request, models in the array are set active and models not in the array (belonging ...
Add POST **************** endpoint for sending chat messages
Receives user message, sends to AI provider via ChatOrchestrationService, returns complete response. Supports REST-based chat flow.
Add Hugging Face as dedicated provider type with custom adapter
- HuggingFaceAdapter handles HF's URL structure **************** - Model discovery via HF API (warm text-generation models) - Registered in ProviderAdapterFacto...
Add manual model creation, handle 410/404 in test, use discovered model for CUSTOM providers
- POST /api/ai/models endpoint for manually adding models - DELETE /api/ai/models/{id} endpoint - CUSTOM providers use first discovered model for chat test inst...
Implement model auto-discovery on provider test connection
Each provider adapter discovers available models from the provider API. Models are automatically saved to the database when Test Connection succeeds.
Scaffold AIService project with providers, services, websocket, and controllers
AI chat orchestration service on port 4205 with: - WebSocket streaming with session auth via ***/Redis - Chat orchestration with auto-routing, usage tracking, a...
