feat: add Ollama as BYOK provider with model selection field#5001
Conversation
Adds Ollama as a predefined Bring Your Own Key (BYOK) provider option with: - Auto-filled base URL (http://localhost:11434/v1) when Ollama is selected - New model selection text field for all providers (fixes RSSNext#4942) - Translation keys for en, zh-CN, zh-TW, ja, fr-FR
一直没合并吗,现在可以用ollama来总结吗 |
It has not been merged yet, and the PR is still open. Checks passed, no conflicts, now waiting for maintainer review / merge. After merging, you can select Ollama via BYOK and fill in the local model name for summary. If you want to test in advance, you can checkout my branch and run it locally. |
Summary
Adds support for Ollama as a predefined Bring Your Own Key (BYOK) provider in Folo's AI settings, plus adds a model selection field to the provider configuration form (fixes the known issue #4942 where the BYOK form was missing model selection).
Changes
New Provider: Ollama
ByokProviderNameunion type in@follow/shared/settings/interfacePROVIDER_OPTIONSin constantshttp://localhost:11434/v1when Ollama is selectedollama: "Ollama"to provider labelsModel Selection Field (fixes #4942)
model?: string | nulltoUserByokProviderConfigtypeByokProviderModalContent— works for all providersFiles Changed
packages/internal/shared/src/settings/interface.tsmodelfield to configapps/desktop/.../ai/byok/constants.tsapps/desktop/.../ai/byok/ByokProviderModalContent.tsxapps/desktop/.../ai/byok/ByokProviderItem.tsxlocales/ai/{en,zh-CN,zh-TW,ja,fr-FR}.jsonTesting
pnpm run typecheck✅ (all 20 tasks pass)pnpm run lint:fix✅ (0 errors)