opencode-go fetcher: skip models whose declared type is not chat
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- api
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 301
- Merge médio
- 3d 14h
- PRs com merge (30d)
- 103
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Zoo-Code-Org/Zoo-Code
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Zoo-Code-Org/Zoo-Code#2773 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Zoo-Code-Org/Zoo-Code#2717 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Zoo-Code-Org/Zoo-Code#2515 ·
Mantenedores costumam responder em até 3 dias
-
fix(scripts): stryker-diff.mjs spawns the extensionless .bin shim and cannot run on WindowsTalvez já em andamento @easonLiangWorldedtech assumiu há 16 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Zoo-Code-Org/Zoo-Code#2514 ·
Mantenedores costumam responder em até 3 dias
-
[BUG] search_files hides matching text on long linesTalvez já em andamento @DananjayaNadun assumiu há 9 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Zoo-Code-Org/Zoo-Code#2496 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 3 dias
Todas as issues de Zoo-Code-Org/Zoo-Code
Issues semelhantes
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
ci
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-js#1248 ·
Mantenedores costumam responder em até 1 dia
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltAbertatechnik
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Mantenedores costumam responder em até 1 dia
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
AhmedNAgy25/analysor#25 ·
Mantenedores costumam responder em até 1 dia