Proposal: a conformance harness for real inference behavior
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- api, backend-api-design, testing
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?
- Lenguaje dominante
- Python
- Estrellas
- 13
- Forks
- 6
- Merge medio
- 2 d 12 h
- PR fusionados (30 d)
- 23
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de togethercomputer/together-py
-
Server Sent Events?Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
togethercomputer/together-py#651 ·
Los mantenedores suelen responder en 1 día
-
Eval CSV validation accepts duplicate headers and loses a column valuePosiblemente ocupada @raunakpandey1 la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
togethercomputer/together-py#700 ·
Los mantenedores suelen responder en 1 día
-
Fine-tuning file size guard rejects 60 GB despite documented 100 GB limitPosiblemente ocupada @Kayvan-Zahiri la tomó hace 60 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
togethercomputer/together-py#588 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
togethercomputer/together-py#505 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de togethercomputer/together-py
Issues similares
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePosiblemente ocupada @abdulwaarith0 la tomó hoy. Abiertoneeds-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
MakazhanAlpamys/Soup#3690 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
bug data-types native-format
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
ClickHouse/clickhouse-connect#1320 ·
Los mantenedores suelen responder en 1 día
-
Public benchmark import end-to-end test fails when the test stack's worker runs the parity jobAbiertoaccepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
future-agi/future-agi#6392 ·
Los mantenedores suelen responder en 1 día