mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 10:17:26 +00:00
blacklist gpt-5-chat-latest (#2048)
This commit is contained in:
parent
303a1044a8
commit
796245d146
1 changed files with 9 additions and 0 deletions
|
@ -276,6 +276,15 @@ export namespace Provider {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [providerID, provider] of Object.entries(providers)) {
|
for (const [providerID, provider] of Object.entries(providers)) {
|
||||||
|
// Filter out blacklisted models
|
||||||
|
const filteredModels = Object.fromEntries(
|
||||||
|
Object.entries(provider.info.models).filter(
|
||||||
|
([modelID]) =>
|
||||||
|
modelID !== "gpt-5-chat-latest" && !(providerID === "openrouter" && modelID === "openai/gpt-5-chat"),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
provider.info.models = filteredModels
|
||||||
|
|
||||||
if (Object.keys(provider.info.models).length === 0) {
|
if (Object.keys(provider.info.models).length === 0) {
|
||||||
delete providers[providerID]
|
delete providers[providerID]
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue