(model: Provider.Model)
| 292 | } |
| 293 | |
| 294 | export function smallOptions(model: Provider.Model) { |
| 295 | const options: Record<string, any> = {} |
| 296 | |
| 297 | if (model.providerID === "openai" || model.api.id.includes("gpt-5")) { |
| 298 | if (model.api.id.includes("5.")) { |
| 299 | options["reasoningEffort"] = "low" |
| 300 | } else { |
| 301 | options["reasoningEffort"] = "minimal" |
| 302 | } |
| 303 | } |
| 304 | if ( |
| 305 | model.providerID === "google" && |
| 306 | (model.api.id.includes("thinking") || model.api.id.includes("gemini-3") || model.api.id.includes("opus")) |
| 307 | ) { |
| 308 | options["thinkingConfig"] = { |
| 309 | thinkingBudget: 0, |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | return options |
| 314 | } |
| 315 | |
| 316 | export function providerOptions(model: Provider.Model, options: { [x: string]: any }) { |
| 317 | switch (model.api.npm) { |
nothing calls this directly
no outgoing calls
no test coverage detected