tweak: codex model logic (#23925)
This commit is contained in:
@@ -378,6 +378,8 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
|
|||||||
for (const [modelId, model] of Object.entries(provider.models)) {
|
for (const [modelId, model] of Object.entries(provider.models)) {
|
||||||
if (modelId.includes("codex")) continue
|
if (modelId.includes("codex")) continue
|
||||||
if (allowedModels.has(model.api.id)) continue
|
if (allowedModels.has(model.api.id)) continue
|
||||||
|
const match = model.api.id.match(/^gpt-(\d+\.\d+)/)
|
||||||
|
if (match && parseFloat(match[1]) > 5.4) continue
|
||||||
delete provider.models[modelId]
|
delete provider.models[modelId]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user