mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-30 06:12:06 +00:00
refactor: broaden haiku background routing
This commit is contained in:
@@ -114,9 +114,10 @@ const getUseModel = async (
|
||||
return model[1];
|
||||
}
|
||||
}
|
||||
// If the model is claude-3-5-haiku, use the background model
|
||||
// Use the background model for any Claude Haiku variant
|
||||
if (
|
||||
req.body.model?.startsWith("claude-3-5-haiku") &&
|
||||
req.body.model?.includes("claude") &&
|
||||
req.body.model?.includes("haiku") &&
|
||||
config.Router.background
|
||||
) {
|
||||
req.log.info(`Using background model for ${req.body.model}`);
|
||||
|
||||
Reference in New Issue
Block a user