(model: string)
| 297 | } |
| 298 | |
| 299 | export function getTimeoutMSByModel(model: string) { |
| 300 | model = model.toLowerCase(); |
| 301 | if ( |
| 302 | model.startsWith("dall-e") || |
| 303 | model.startsWith("dalle") || |
| 304 | model.startsWith("o1") || |
| 305 | model.startsWith("o3") || |
| 306 | model.includes("deepseek-r") || |
| 307 | model.includes("-thinking") |
| 308 | ) |
| 309 | return REQUEST_TIMEOUT_MS_FOR_THINKING; |
| 310 | return REQUEST_TIMEOUT_MS; |
| 311 | } |
| 312 | |
| 313 | export function getModelSizes(model: string): ModelSize[] { |
| 314 | if (isDalle3(model)) { |