Skip to content

feat: 集成models.dev提供商选择器 - #6

Open
Kotobaxiao-David wants to merge 4 commits into
HiUnikitty:mainfrom
Kotobaxiao-David:main
Open

feat: 集成models.dev提供商选择器#6
Kotobaxiao-David wants to merge 4 commits into
HiUnikitty:mainfrom
Kotobaxiao-David:main

Conversation

@Kotobaxiao-David

@Kotobaxiao-David Kotobaxiao-David commented Aug 2, 2026

Copy link
Copy Markdown

Hi, HiUnikitty.

很高兴能用上您写的网页程序。这个软件帮了我大忙。
因为我用到了许多模型,因此我想把一个成熟的模型数据库引入其中。
以及有的人可能电脑配置不佳,想要使用第三方的在线api来生图和改图,所以也增加了仅生成生图提示词的功能。
我选择了 Models.dev,这个是 OpenCode 开发团队创造并采用的,并且更新很及时,我相信能为您的网站用户也创造一些方便。

同时也祝您生活顺利,万事胜意!

祝好。


本次合并的内容 (PR Details)

  • 新增 models-providers.json:(152 个提供商,4751 个模型,来源 models.dev)
  • 新增提供商选择弹窗:(主 API + 识图 API)
  • 新增同步云端模型库功能:(全量获取,排除非 OpenAI 格式)
  • 识图 API 过滤inputimageoutputtext
  • 主 API 过滤inputtextoutputtext
  • 选择模型后显示提示:显示上下文及输出限制提示
  • 新增 macOS 启动脚本Start.sh
  • 新增 .gitignore
  • 开源协议合规:已在 README.mdLICENSE 文件中补充 Models.dev 的 MIT 许可声明

English Summary

This PR includes the following updates:

  • Added models-providers.json: Integrated provider and model data sourced from models.dev (152 providers, 4,751 models).
  • Added Provider Selection Modal: Supports selecting providers for both the Primary API and Vision API.
  • Added Cloud Model Sync: Fetches the full model list from the cloud while filtering out non-OpenAI-compliant formats.
  • Vision API Filtering: Filters models where input includes image and output includes text.
  • Primary API Filtering: Filters models where input includes text and output includes text.
  • Model Context Hints: Displays context window and max output token limit warnings/hints upon model selection.
  • Added Start.sh: Provided a startup script tailored for macOS environments.
  • Added .gitignore: Updated git ignore rules.
  • License & Compliance: Updated README.md and LICENSE to acknowledge the MIT License of Models.dev.

- 新增 models-providers.json(152提供商,4751模型,来源models.dev)
- 新增提供商选择弹窗(主API + 识图API)
- 新增同步云端模型库功能(全量获取,排除非OpenAI格式)
- 识图API过滤:input含image且output含text
- 主API过滤:input含text且output含text
- 选择模型后显示上下文/输出限制提示
- 新增 Start.sh macOS启动脚本
- 新增 .gitignore
@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for mocards ready!

Name Link
🔨 Latest commit 85c362c
🔍 Latest deploy log https://app.netlify.com/projects/mocards/deploys/6a71d39eb68d210008b2f172
😎 Deploy Preview https://deploy-preview-6--mocards.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant