Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Models fetching issue: models.dev matching fails for providers with a templated API URL (e.g. Cloudflare Workers AI), so no models are discovered

オープン
#662 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
clojure
領域
ai, backend

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

editor-code-assistant/eca のほかの issue

editor-code-assistant/eca の issue をすべて見る

似ている issue

Clojure の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。