Skip to content

Fix Ollama local chat and model discovery - #294

Merged
Hello-QM merged 1 commit into
Hello-QM:mainfrom
XCai-0213:fix/ollama-local-chat
Jun 9, 2026
Merged

Fix Ollama local chat and model discovery#294
Hello-QM merged 1 commit into
Hello-QM:mainfrom
XCai-0213:fix/ollama-local-chat

Conversation

@XCai-0213

Copy link
Copy Markdown
Contributor

Author: XCai@JXNU 690857@163.com

Summary

  • Fix Ollama local provider detection by querying the native /api/tags endpoint.
  • Return installed Ollama models to the CatBot provider/model selector.
  • Allow Ollama chat streaming without requiring an API key.
  • Route Ollama chat through the native /api/chat endpoint.
  • Show Fetch Models / Test Connection actions for Ollama in CatBot settings.
  • Auto-select the first local Ollama model when the current model is empty.

Verification

  • pnpm vitest run src/lib/chat/tests/provider-routing.test.ts src/lib/chat/tests/client-llm.test.ts
    • Result: 2 files passed, 28 tests passed.
  • py -m py_compile server/catgo/routers/chat.py
  • Ollama backend smoke test passed with mocked /api/tags and /api/chat.

@Hello-QM
Hello-QM merged commit 7d7873c into Hello-QM:main Jun 9, 2026
4 checks passed
@XCai-0213
XCai-0213 deleted the fix/ollama-local-chat branch June 13, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants