[bot] OpenAI Decisions API (`client.decisions.create()`) not instrumented
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- nodejs, typescript
Rechercherichtung
Start with js/src/auto-instrumentations/configs/openai.ts, which shows how the existing Responses and Embeddings resources are instrumented, then check js/src/wrappers/oai.ts for the manual proxy. Add a Decisions entry and a plugin channel under js/src/instrumentation/plugins/, and raise the openai devDependency in js/package.json to at least 7.30.0. Done means client.decisions.create() emits a span in a recorded test.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
OpenAI's Node SDK added a standalone Decisions API (client.decisions.create(), endpoint POST /v1/decisions) in [email protected] (changelog: "add standalone Decisions support"). It runs the dedicated gpt-6-luna model (added in [email protected], "add GPT-6 Sol and Luna model identifiers") to turn text/image input into typed, structured answers — a generative model-execution call distinct from Chat Completions/Responses, not a CRUD or admin endpoint. Development is active and ongoing: the latest openai release (7.33.0, 2026-10-14) adds "organization Decisions usage reporting" and documentation clarifications for decision creation. This repo has zero instrumentation for this surface — no config entry, no channel, no wrapper — so calls to client.decisions.create() produce no Braintrust spans at all.
What instrumentation is missing
client.decisions.create({ model: "gpt-6-luna", input, decision })—POST /v1/decisions. Accepts text/image input plus a typed decision schema (choices/score/boolean-style questions) and returns a structured, typed answer instead of free-form prose.
No coverage in any instrumentation layer:
js/src/auto-instrumentations/configs/openai.ts— instrumentsImages.*,Audio.*(speech/transcriptions/translations),Chat.Completions.create/parse/stream,Embeddings.create,Moderations.create, andResponses.create/stream/parse/compact. No entry for aDecisionsresource.js/src/instrumentation/plugins/— noopenai-decisions-style channel or plugin file.js/src/wrappers/oai.ts— manual wrapper proxies the resources above only; nodecisionsproperty handling.
A case-insensitive repo-wide search for decisions under js/src/ returns no genuine matches (the only two hits are an unrelated test description string and an unrelated code comment, neither referencing this API).
Braintrust docs status
not_found — https://www.braintrust.dev/docs/integrations/ai-providers/openai lists the OpenAI methods Braintrust auto-traces for TypeScript (chat completions, embeddings, moderation, Responses API, batch API, Agents API, images, audio) and does not mention a Decisions API, decisions.create, or gpt-6-luna anywhere.
Upstream references
openainpm changelog (raw): https://raw.githubusercontent.com/openai/openai-node/master/CHANGELOG.md7.22.0: "add GPT-6 Sol and Luna model identifiers"7.30.0: "add standalone Decisions support"7.33.0(latest, 2026-10-14): "add organization Decisions usage reporting"; chores include "clarify decision creation documentation" and "document decision choice constraints"
- OpenAI API changelog: https://developers.openai.com/api/docs/changelog —
v1/decisionsendpoint, modelgpt-6-luna, status "beta," guide at https://developers.openai.com/api/docs/guides/decisions
Local files inspected
js/src/auto-instrumentations/configs/openai.ts— full file read; noDecisionsentryjs/src/wrappers/oai.ts— nodecisionsproxy handling- Repo-wide case-insensitive grep for
decisionsunderjs/src/— no relevant matches js/package.json—openaidevDependency pinned at6.25.0(below the>=7.30.0floor needed for this surface), confirming it is a genuinely new capability relative to this repo's current test/record setup rather than something already exercised
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 16
- Ø Merge
- 1 T. 20 Std.
- Gemergte PRs (30 T.)
- 70
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus braintrustdata/braintrust-sdk-javascript
-
High TypeScript checking cost from generated Zod 3 schemasEvtl. vergeben @lforst hat das heute übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
braintrustdata/braintrust-sdk-javascript#2624 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
typescript
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bot] Instrument Letta Agent SDK (87,205 weekly downloads)Evtl. vergeben @karthiksenv hat das vor 3 Tagen übernommen. Offentypescript
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2577 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2527 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 65/100
braintrustdata/braintrust-sdk-javascript#2526 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in braintrustdata/braintrust-sdk-javascript
Ähnliche Issues
-
documentation good first issue
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 72/100
sujithputta02/Esapay#13 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)Evtl. vergeben @chibenwa hat das heute übernommen. Offenai-driven-qa bug claude Cosmetic
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
linagora/twake-contacts-frontend#271 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
vercel/ai#23435 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Koenkk/zigbee2mqtt#33402 ·
Maintainer antworten meist innerhalb von 1 Tag