Add supply and privacy checks to the provider listing process, and audit existing providers

未關閉
#2,672 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
markdown, typescript, yaml

研究方向

Start with the three template files named in the issue: .github/DISCUSSION_TEMPLATE/providers.yml, .github/pull_request_template.md and CONTRIBUTING.md, then list the providers in packages/types/src/providers/. Done means the three new questions and the recorded-stream request are in the templates, the checks section is in CONTRIBUTING, and the audit table is posted as a comment. Expect the provider audit to need maintainer input on scope.

由索引模型根據 Issue 內容生成。

描述

enhancement

Problem

The provider listing Discussion template asks five optional questions. They do not cover the checks that the review of PR #2637 (Infer) needed. Reviewers had to find the missing facts by reading the vendor pages.

The gaps are:

  • The template asks if the operator resells access. It does not ask how the operator gets access. Anthropic Commercial Terms section D.4 do not allow resale unless Anthropic approves. Anthropic Claude Code docs do not allow routing requests through Free, Pro, Max or Ultra plan credentials for other users.
  • The template does not ask if a gateway or subprocessor sits between the operator and the model lab. A "no storage" claim by the operator does not cover its subprocessors.
  • The template does not ask what happens to prompts in the default privacy mode. It does not ask if the service rejects a request or uses a weaker mode when a supplier cannot meet a requested mode.
  • The PR template does not ask the author to show a recorded stream. Handlers that read cost or usage from stream chunks depend on the real chunk layout. Some OpenAI-compatible proxies differ from the OpenAI layout.
  • No document says which checks apply to a provider that was listed before this template existed.

Proposed change

  1. Update .github/DISCUSSION_TEMPLATE/providers.yml. Keep all questions optional and keep the forum tone. Add these questions:
    • How does the operator get access to each model route? Does each route use a first-party, reseller, partner or cloud-marketplace agreement? Does any route use subscription or OAuth accounts?
    • Does any gateway provider or subprocessor handle prompts? List each one, or its category and location. Do no-retention and no-training terms bind it?
    • What can the operator or a supplier keep or train on in the default privacy mode? If a request asks for a stricter mode and a supplier cannot support it, does the service reject the request?
  2. Update .github/pull_request_template.md. For a new provider PR, ask for one recorded streaming response. It must show the finish chunk and the usage chunk, if the handler reads cost or usage from chunks.
  3. Add a short "Provider listing checks" section to CONTRIBUTING.md. State the checks, the sources below, and that a listing is not an endorsement.

Audit of existing providers

  1. Make a list of every provider in packages/types/src/providers/.
  2. Sort each provider into one group:
    • First-party API of a model lab.
    • Cloud platform (for example Bedrock or Vertex).
    • Gateway or reseller that serves models from other labs.
    • Local runtime (for example Ollama or LM Studio).
    • Subscription or OAuth login (for example the Codex, Qwen Code and Kimi Code providers).
  3. For each gateway or reseller, record the answers to the three new questions. Use public pages only. Write "not published" when a page gives no answer.
  4. For each subscription or OAuth provider, check the current terms of the vendor. Record if third-party tools may use the login.
  5. For each provider that reads cost or usage from stream chunks, check that a test uses a real recorded chunk layout.
  6. Put the results in a table in a comment on this issue. Use one row for each provider and one column for each check.
  7. Fix each finding under this issue. Use one PR for each fix and link each PR here. Do not open separate follow-up issues.

Sources

Most gateway sources are vendor documents, not standards. Use them as starting points.

Out of scope

  • Block or remove a provider. A maintainer decides that after the audit.
主要語言
TypeScript
星號
2k
分支
301
平均合併
3 天 14 小時
30 天內合併 PR
103

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。