MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / getTimeoutMSByModel

Function getTimeoutMSByModel

app/utils.ts:299–311  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

297}
298
299export 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
313export function getModelSizes(model: string): ModelSize[] {
314 if (isDalle3(model)) {

Callers 11

chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90
chatMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected