Skip to content

fix(web): add missing provider homepage links in Available models panel - #17040

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
euvre:fix/frontend-llm-provider-homepage-links
Jul 17, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
euvre:fix/frontend-llm-provider-homepage-links

Conversation

@euvre

@euvre euvre commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds the missing frontend entries (LLMFactory enum, IconMap, and APIMapUrl) for providers that appear in the Available models panel but did not show the external homepage icon.

Changes include:

  • New providers added to the frontend constants: Astraflow, Astraflow-CN, FastEmbed, FuturMix, siliconflow_intl, Xiaomi, HuaweiCloud, OrcaRouter, Qiniu, TokenHub, MinerU.Net, PaddleOCR.Net.
  • Homepage/API-key URLs added for providers already in the enum but missing links, including Xinference, Ollama, LocalAI, LM-Studio, GPUStack, VLLM, Grok, Longcat, Jiekou.AI, MinerU, RAGcon, FunASR, LeptonAI, PerfXCloud, Youdao, BAAI, NomicAI, JinaAI, SentenceTransformers, and others.

Generic/local providers without external homepages (OpenAI-API-Compatible, Builtin, OpenDataLoader, New API) are intentionally left unchanged.

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.
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code labels Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

LLM provider catalog

Layer / File(s) Summary
Provider definitions and icons
web/src/constants/llm.ts
Adds LLMFactory.MinerUNet and icon mappings for the expanded provider set.
Provider API URL mappings
web/src/constants/llm.ts
Adds API-key or token URLs for additional model, embedding, OCR, and speech providers.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: hz-186

Poem

A rabbit hops through provider rows,
New icons bloom where the catalog grows.
Tokens find URLs, neat and bright,
MinerU joins the list tonight.
“Boing!” says the bunny—“all mapped right!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and matches the main change: adding missing provider homepage links for the Available models panel.
Description check ✅ Passed The description includes the required Summary section plus clear context, changed providers, and unchanged exceptions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@euvre euvre added the ci Continue Integration label Jul 17, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between e55bc96 and a9114d2.

📒 Files selected for processing (1)
  • web/src/constants/llm.ts

Comment thread web/src/constants/llm.ts
Comment on lines +249 to +280
[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',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

Suggested change
[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.

@wangq8
wangq8 requested a review from Lynn-Inf July 17, 2026 08:25

@Lynn-Inf Lynn-Inf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@euvre
euvre requested a review from wangq8 July 17, 2026 09:34
@wangq8
wangq8 merged commit 7ec2e91 into infiniflow:main Jul 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants