Models fetching issue: models.dev matching fails for providers with a templated API URL (e.g. Cloudflare Workers AI), so no models are discovered
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by finding the models.dev provider matching code and tracing how it compares configured API URLs with provider entries. Reproduce the Cloudflare Workers AI case using the templated URL and the /models 405 response described here. Done means the provider is matched through a reliable approach and its models are discovered without relying on the unavailable endpoint.
索引モデルが issue の本文から書いたものです。
説明
Cloudflare Workers AI use a custom value in a path of the URL, that is the account ID:
"cloudflare-workers-ai": {
"api": "openai-chat",
"url": "https://api.cloudflare.com/client/v4/accounts/<account_id>/ai/v1",
"key": "api_key"
}
Then it seems it does not match API URL of models.dev, since it's templated:
curl -s https://models.dev/api.json | jq '."cloudflare-workers-ai".api'
"https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/ai/v1"
And since it does not match, according to the docs, it seems to try the /models endpoint, that does not exist in this provider:
01:23:18.394 WARN [MODELS] Provider 'cloudflare-workers-ai': /models endpoint returned status 405: {"result":null,"success":false,"errors":[{"code":7001,"message":"GET not supported for requested URI."}],"messages":[]}
One solution would be to fallback to provider id if URL match fails:
curl -s https://models.dev/api.json | jq '."cloudflare-workers-ai".id'
"cloudflare-workers-ai"
Another could be treating the template part ${...} as wildcards when matching, so it would be ignored.
Then it would match the correct entry of models.dev.
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
- 主要言語
- Clojure
- スター
- 1k
- フォーク
- 82
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 18
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
editor-code-assistant/eca のほかの issue
-
Models doesn't work when fetchModels: false is used対応中かも @zikajk が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
editor-code-assistant/eca#661 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
editor-code-assistant/eca#664 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
editor-code-assistant/eca#652 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
editor-code-assistant/eca#648 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
editor-code-assistant/eca#644 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 2 日以内に返信
editor-code-assistant/eca の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
.Frontend .Team/UXWest Priority:P3 Querying/Filters Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
metabase/metabase#85298 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
pgwire
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
Evals take an extra 40ms each on Linux, since the server doesn't set TCP_NODELAY対応中かも @bbatsov が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 3 日以内に返信