Proposal: a conformance harness for real inference behavior
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- api, backend-api-design, testing
調査の方向性
Start by locating the new SDK's request and response models and existing tests, then compare them with the older client's typed chat-completion and logprob contracts mentioned in the issue. Confirm the maintainers' preferred first slice before designing the report schema, fixtures, and runner. Done should include an agreed scope and tests demonstrating deterministic behavior reports without an API key.
索引モデルが issue の本文から書いたものです。
説明
Problem
A typed SDK can be correct against the API schema and still be unreliable for real inference work. Provider behavior changes at the edges: streaming may end differently, tool calls may be partial, logprobs have nested shapes, context limits may truncate or reject a request, and usage fields can be missing when a request fails halfway through.
Those differences are hard to see from unit tests that validate one response at a time. They show up later as broken agent loops, incorrect accounting, or a client that silently interprets a response differently after an API rollout.
Proposal
Add an opt-in provider conformance harness to the new SDK. It would run a small canonical request corpus and save a versioned behavior report for each model or endpoint.
The report should cover:
- normal and streamed chat responses
- tool-call start, delta, completion, and interruption behavior
- logprob nesting and token alignment
- context-length truncation versus error behavior
- finish reasons and usage accounting
- retryable failures and partial responses
- request and response schema versions
The output should be a diffable artifact, not a dashboard. A change in a model or API rollout should be visible as a contract change with the exact request, response shape, and expected compatibility impact. Raw prompts and completions should be redacted or represented by hashes unless the user explicitly opts in.
Suggested first slice
- Define a small provider-behavior report schema.
- Add deterministic mock streams for the edge cases above.
- Add a conformance runner that works without an API key against those fixtures.
- Add an optional live mode that records sanitized observations from a real endpoint.
- Make report diffs usable in CI so SDK changes and API rollouts can be checked before release.
This should stay separate from the request and response models. It is a diagnostic and compatibility layer around them.
Why this matters
Together is operating across many models and inference modes. A schema tells users what a response is supposed to look like. A behavior report tells them what actually changed. That distinction matters for production agents, long-context requests, streaming consumers, and eval pipelines.
I have been working on typed chat-completion and logprob contracts in the older client, and I have built serving and evaluation systems where partial failures and latency behavior needed to be inspected after the run. I would be interested in taking the SDK-side report format and fixture runner through a focused implementation if this is useful for the new client.
Is this the kind of compatibility problem the Together team would want represented in the new SDK?
- 主要言語
- Python
- スター
- 13
- フォーク
- 6
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 23
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
togethercomputer/together-py のほかの issue
-
Server Sent Events?オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
togethercomputer/together-py#651 ·
メンテナーはふだん 1 日以内に返信
-
Eval CSV validation accepts duplicate headers and loses a column value対応中かも @raunakpandey1 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
togethercomputer/together-py#700 ·
メンテナーはふだん 1 日以内に返信
-
Fine-tuning file size guard rejects 60 GB despite documented 100 GB limit対応中かも @Kayvan-Zahiri が 60 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
togethercomputer/together-py#588 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
togethercomputer/together-py#505 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
togethercomputer/together-py の issue をすべて見る
似ている issue
-
auto-reported bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
backend bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
nolte/kamerplanter#3193 ·
メンテナーはふだん 1 日以内に返信
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwise対応中かも @abdulwaarith0 が今日担当しました。 オープンneeds-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
MakazhanAlpamys/Soup#3690 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信