This website requires JavaScript.
Explore
Help
Register
Sign In
ydy0615
/
llm-in-text
Watch
1
Star
0
Fork
0
You've already forked llm-in-text
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
03bb21d5c6ffda90145fa0d23aa74f8fccfaea3b
llm-in-text
/
backend
/
__pycache__
/
llm.cpython-313.pyc
54 lines
5.6 KiB
Plaintext
Raw
Normal View
History
Unescape
Escape
feat: switch from OpenAI API to native Ollama Python client This commit refactors the LLM integration to use Ollama's native Python client instead of OpenAI-compatible API, while fixing critical template syntax errors and improving project structure. Key changes: - Replace openai package with ollama package in backend requirements - Rewrite llm.py to use ollama.AsyncClient for direct Ollama API calls - Update main.py to use non-streaming Ollama responses with thinking extraction - Fix template syntax error in MilkdownEditor.vue (GhostTextOverlay component tags) - Fix string截取错误 by using slice() instead of substring() - Add src/utils/api.js and src/utils/config.js for shared configuration - Add CORS middleware to FastAPI backend - Update prompt.py with clearer instructions for continuation generation - Add comprehensive README.md documentation BREAKING CHANGE: Environment variables OLLAMA_BASE_URL changed to OLLAMA_HOST (remove /v1/ suffix)
2026-02-07 08:53:37 +08:00
<EFBFBD>
feat(editor): add image insertion with OCR support and size limit handling Add image button with dropdown menu for uploading local images or inserting from URL. Integrate VLM-based OCR to extract text context from images and include in AI suggestions. Implement document size limits to disable AI when exceeding threshold. Refactor copilot plugin with per-view runtime state and OCR context injection. Add OCR cache utility for managing image metadata. Add code splitting configuration for optimized bundle size.
2026-02-14 18:28:37 +08:00