Repository navigation
fix(web): add missing provider homepage links in Available models panel - #17040
Conversation
Add missing LLMFactory enum values, IconMap entries, and APIMapUrl entries for providers that were missing from the frontend constants, including Astraflow, Astraflow-CN, FastEmbed, FuturMix, siliconflow_intl, Xiaomi, HuaweiCloud, OrcaRouter, Qiniu, TokenHub, MinerU.Net and PaddleOCR.Net. Also add homepage URLs for providers already in the enum but without links, such as Xinference, Ollama, LocalAI, LM-Studio, GPUStack, VLLM, and others.
📝 WalkthroughWalkthroughThe LLM provider catalog adds the MinerU.Net provider, extends provider icon coverage, and adds API-key or token URL mappings for additional model, embedding, OCR, and speech platforms. ChangesLLM provider catalog
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/src/constants/llm.ts`:
- Around line 249-280: Add APIMapUrl entries for the newly added providers that
currently lack mappings, including Perplexity, OpenDataLoader, and SoMark, using
their relevant external homepages or API-console URLs. Update the APIMapUrl
mapping near the existing LLMFactory entries while preserving all current
mappings so ProviderHeaderBar can render the appropriate external links.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 28a375df-324d-43bd-b06b-a16810c56291
📒 Files selected for processing (1)
web/src/constants/llm.ts
| [LLMFactory.Astraflow]: 'https://astraflow.ucloud-global.com/en-us', | ||
| [LLMFactory.AstraflowCN]: 'https://astraflow.ucloud.cn/', | ||
| [LLMFactory.FastEmbed]: 'https://qdrant.github.io/fastembed/', | ||
| [LLMFactory.FuturMix]: 'https://futurmix.ai', | ||
| [LLMFactory.SiliconflowIntl]: 'https://cloud.siliconflow.us/account/ak', | ||
| [LLMFactory.Xiaomi]: 'https://mimo.mi.com/', | ||
| [LLMFactory.HuaweiCloud]: 'https://www.huaweicloud.com', | ||
| [LLMFactory.OrcaRouter]: 'https://orcarouter.ai', | ||
| [LLMFactory.Qiniu]: 'https://www.qiniu.com', | ||
| [LLMFactory.TokenHub]: 'https://aitok.cc', | ||
| [LLMFactory.WenXinYiYan]: 'https://yiyan.baidu.com', | ||
| [LLMFactory.Ollama]: 'https://ollama.com', | ||
| [LLMFactory.Xinference]: 'https://github.com/xorbitsai/inference', | ||
| [LLMFactory.LocalAI]: 'https://localai.io', | ||
| [LLMFactory.LMStudio]: 'https://lmstudio.ai', | ||
| [LLMFactory.LeptonAI]: 'https://lepton.ai', | ||
| [LLMFactory.PerfXCloud]: 'https://www.perfxcloud.cn', | ||
| [LLMFactory.YouDao]: 'https://ai.youdao.com', | ||
| [LLMFactory.BAAI]: 'https://www.baai.ac.cn', | ||
| [LLMFactory.NomicAI]: 'https://nomic.ai', | ||
| [LLMFactory.JinaAI]: 'https://jina.ai/embeddings/', | ||
| [LLMFactory.SentenceTransformers]: 'https://www.sbert.net', | ||
| [LLMFactory.GPUStack]: 'https://gpustack.ai', | ||
| [LLMFactory.VLLM]: 'https://vllm.ai', | ||
| [LLMFactory.Grok]: 'https://x.ai', | ||
| [LLMFactory.Longcat]: 'https://longcat.chat', | ||
| [LLMFactory.JiekouAI]: 'https://jiekou.ai', | ||
| [LLMFactory.MinerU]: 'https://mineru.net', | ||
| [LLMFactory.MinerUNet]: 'https://mineru.net', | ||
| [LLMFactory.PaddleOCRNet]: 'https://www.paddleocr.ai/latest/', | ||
| [LLMFactory.RAGcon]: 'https://connect.ragcon.com', | ||
| [LLMFactory.FunASR]: 'https://github.com/modelscope/FunASR', |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Consider adding API URL mappings for the remaining new providers.
Several newly added providers (such as Perplexity, OpenDataLoader, and SoMark) are missing from APIMapUrl. As shown in the ProviderHeaderBar component, omitting these mappings will suppress the external API-key or documentation link in the UI. Consider adding them if they have relevant external homepages or API consoles.
💻 Proposed fix
[LLMFactory.MinerUNet]: 'https://mineru.net',
[LLMFactory.PaddleOCRNet]: 'https://www.paddleocr.ai/latest/',
[LLMFactory.RAGcon]: 'https://connect.ragcon.com',
+ [LLMFactory.Perplexity]: 'https://console.perplexity.ai/',
+ [LLMFactory.OpenDataLoader]: 'https://github.com/opendataloader-project/opendataloader-pdf',
[LLMFactory.FunASR]: 'https://github.com/modelscope/FunASR',📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| [LLMFactory.Astraflow]: 'https://astraflow.ucloud-global.com/en-us', | |
| [LLMFactory.AstraflowCN]: 'https://astraflow.ucloud.cn/', | |
| [LLMFactory.FastEmbed]: 'https://qdrant.github.io/fastembed/', | |
| [LLMFactory.FuturMix]: 'https://futurmix.ai', | |
| [LLMFactory.SiliconflowIntl]: 'https://cloud.siliconflow.us/account/ak', | |
| [LLMFactory.Xiaomi]: 'https://mimo.mi.com/', | |
| [LLMFactory.HuaweiCloud]: 'https://www.huaweicloud.com', | |
| [LLMFactory.OrcaRouter]: 'https://orcarouter.ai', | |
| [LLMFactory.Qiniu]: 'https://www.qiniu.com', | |
| [LLMFactory.TokenHub]: 'https://aitok.cc', | |
| [LLMFactory.WenXinYiYan]: 'https://yiyan.baidu.com', | |
| [LLMFactory.Ollama]: 'https://ollama.com', | |
| [LLMFactory.Xinference]: 'https://github.com/xorbitsai/inference', | |
| [LLMFactory.LocalAI]: 'https://localai.io', | |
| [LLMFactory.LMStudio]: 'https://lmstudio.ai', | |
| [LLMFactory.LeptonAI]: 'https://lepton.ai', | |
| [LLMFactory.PerfXCloud]: 'https://www.perfxcloud.cn', | |
| [LLMFactory.YouDao]: 'https://ai.youdao.com', | |
| [LLMFactory.BAAI]: 'https://www.baai.ac.cn', | |
| [LLMFactory.NomicAI]: 'https://nomic.ai', | |
| [LLMFactory.JinaAI]: 'https://jina.ai/embeddings/', | |
| [LLMFactory.SentenceTransformers]: 'https://www.sbert.net', | |
| [LLMFactory.GPUStack]: 'https://gpustack.ai', | |
| [LLMFactory.VLLM]: 'https://vllm.ai', | |
| [LLMFactory.Grok]: 'https://x.ai', | |
| [LLMFactory.Longcat]: 'https://longcat.chat', | |
| [LLMFactory.JiekouAI]: 'https://jiekou.ai', | |
| [LLMFactory.MinerU]: 'https://mineru.net', | |
| [LLMFactory.MinerUNet]: 'https://mineru.net', | |
| [LLMFactory.PaddleOCRNet]: 'https://www.paddleocr.ai/latest/', | |
| [LLMFactory.RAGcon]: 'https://connect.ragcon.com', | |
| [LLMFactory.FunASR]: 'https://github.com/modelscope/FunASR', | |
| [LLMFactory.MinerUNet]: 'https://mineru.net', | |
| [LLMFactory.PaddleOCRNet]: 'https://www.paddleocr.ai/latest/', | |
| [LLMFactory.RAGcon]: 'https://connect.ragcon.com', | |
| [LLMFactory.Perplexity]: 'https://console.perplexity.ai/', | |
| [LLMFactory.OpenDataLoader]: 'https://github.com/opendataloader-project/opendataloader-pdf', | |
| [LLMFactory.FunASR]: 'https://github.com/modelscope/FunASR', |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@web/src/constants/llm.ts` around lines 249 - 280, Add APIMapUrl entries for
the newly added providers that currently lack mappings, including Perplexity,
OpenDataLoader, and SoMark, using their relevant external homepages or
API-console URLs. Update the APIMapUrl mapping near the existing LLMFactory
entries while preserving all current mappings so ProviderHeaderBar can render
the appropriate external links.
Summary
This PR adds the missing frontend entries (
LLMFactoryenum,IconMap, andAPIMapUrl) for providers that appear in the Available models panel but did not show the external homepage icon.Changes include:
Generic/local providers without external homepages (OpenAI-API-Compatible, Builtin, OpenDataLoader, New API) are intentionally left unchanged.