opencode-go fetcher: skip models whose declared type is not chat
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 22/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- api
Rechercherichtung
The filter is meant to live in src/api/providers/fetchers/opencode-go.ts, and the spec skips models whose type is not chat (maintainer review) is in src/api/providers/fetchers/tests/opencode-go.spec.ts. The issue says this is already implemented on PR #2646, so first check that PR's diff and the maintainer's review item before writing anything. Done means the filter and its spec are tracked as their own scoped piece of work, and the TLA+ OnlyChatListed invariant in docs/architecture/tla/OpencodeGoModelMerge.tla still holds.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Current behavior
The OpenCode Go /models fetcher (src/api/providers/fetchers/opencode-go.ts) now skips any model whose endpoint-declared type is neither chat nor absent. Entries without a type field stay listed, so older responses that lack the discriminator are unaffected:
// Only chat models belong in the picker; an embedding or other
// type would surface as an unusable choice. Entries without a
// type stay listed for older responses (maintainer review).
if (parsed.data.type !== undefined && parsed.data.type !== "chat") {
continue
}
Why
The current /models endpoint publishes a type discriminator alongside limit.context, limit.output and modalities.input. An embedding or other non-chat model would otherwise surface in the chat model picker as an unusable choice.
This behavior was explicitly requested by maintainer @edelauna in their review of PR #2646 (review 6033833085, item: "Skip models whose type is not chat").
Scope
The type filter is implemented and tested on PR #2646: covered by the skips models whose type is not chat (maintainer review) spec in src/api/providers/fetchers/__tests__/opencode-go.spec.ts, and by the OnlyChatListed invariant with its OpencodeGoModelMerge.NoTypeFilter.cfg sabotage config in docs/architecture/tla/OpencodeGoModelMerge.tla. This issue tracks the filter as its own scoped piece of work so PR #2646 can list it as in-scope.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2k
- Forks
- 301
- Ø Merge
- 3 T. 14 Std.
- Gemergte PRs (30 T.)
- 103
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 Zoo-Code-Org/Zoo-Code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsEvtl. vergeben @easonLiangWorldedtech hat das vor 16 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
[BUG] search_files hides matching text on long linesEvtl. vergeben @DananjayaNadun hat das vor 9 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in Zoo-Code-Org/Zoo-Code
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
ci
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ClickHouse/clickhouse-js#1248 ·
Maintainer antworten meist innerhalb von 1 Tag
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOffentechnik
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
AhmedNAgy25/analysor#25 ·
Maintainer antworten meist innerhalb von 1 Tag