Repository navigation
feat: local models and knowledge bases as first-class (P1.4) - #79
Merged
Merged
Conversation
Prefer Ollama and local OpenAI-compatible endpoints in the setup wizard and Models page; keep cloud providers optional. Knowledge empty state leads with a local folder mount and ONNX embeddings. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Wizard featured slots previously pulled ONNX in when fewer than six cloud brands were listed. Embedding stays under more; local chat remains first. Guard the connectivity test when no model is selected yet. Co-authored-by: XYAI Labs <haoboy8@gmail.com>
XYAIStudio
marked this pull request as ready for review
September 20, 2026 10:59
This was referenced Sep 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
本机模型与本机知识库作为默认路径(FreeOS P1.4)。新用户在向导和设置里就能找到并选用本机模型、本机知识库,不必先翻云厂商。云端仍可用,只是不再当默认入口。文案偏软:本机优先,不写反官方口号。
Target branch
main(本仓库无日常develop集成分支)Type of change
做了什么
127.0.0.1/localhost/ollama/lmstudio/vllm自动填占位密钥local。未做:拆除 Node(P2)、导出改写、双身份(已完成)、强制离线-only。组织边车
/api/settings/ai不在本波。Test plan
tests/unit/utils/test_local_endpoint.py、test_provider_preset_expansion.py、test_gate.py、dashboardpresetUtils.test.ts、KnowledgeMountHome.test.tsxuv run pytest相关单测:tests/unit/agents+tests/unit/api+tests/unit/knowledge+ local-endpoint / preset expansion → 950 passed, 2 skippednpx vitest run针对presetUtils.test.ts、KnowledgeMountHome.test.tsx→ 8 passedcd dashboard && npx tsc --noEmit通过make all(本环境uv run ruff会撞 aliyun-python-sdk-core 卸载问题;已用.venv/bin/ruff check扫过改动文件)Checklist
CHANGELOG.md(Unreleased)