symfony/models-dev
Composer 安装命令:
composer require symfony/models-dev
包简介
Provides the models.dev data as a Composer package
README 文档
README
This repository provides a daily snapshot of the models.dev
API as a Composer package. It makes the full catalog of AI model metadata
(providers, models, pricing, context limits, modalities, …) available to any PHP
project via a simple composer require.
How it works
A GitHub Actions workflow runs every day at 06:00 UTC:
- It fetches the latest data from
https://models.dev/api.json. - If the data has changed, it commits the updated
models-dev.jsonfile. - It creates a GitHub Release with a new version tag and a changelog describing
added/removed providers and models. The version follows semver: minor bumps
for additions and metadata updates (
v1.0→v1.1), major bumps when models or providers are removed (v1.3→v2.0).
Installation
Releases follow semver: minor versions add new models or providers, major versions
indicate removals. Use the ^ constraint to automatically receive new
models/providers while staying protected from removals:
composer require symfony/models-dev:^1.0
When a new major version is released, review the release notes to see what was removed before upgrading.
The models-dev.json file at the root of the package contains the full dataset.
Usage
This package can be used in conjunction with the Symfony AI Models.dev bridge, which provides a universal platform giving access to all AI providers available on models.dev with automatic capability discovery, pricing, and routing to specialized bridges. See the full documentation for details.
You can also use the JSON data directly:
$models = json_decode( file_get_contents(__DIR__.'/vendor/symfony/models-dev/models-dev.json'), true, ); // List all providers $providers = array_keys($models); // Get all models for a given provider $openaiModels = $models['openai']['models'];
symfony/models-dev 适用场景与选型建议
symfony/models-dev 是一款 基于 Python 开发的 Composer 扩展包,目前已累计 20.08k 次下载、GitHub Stars 达 15, 最近一次更新时间为 2026 年 03 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 symfony/models-dev 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symfony/models-dev 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 20.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 8
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-01