fix(model-fallback): enable by default and add missing error patterns for usage limits (#2393)
This commit is contained in:
@@ -153,7 +153,7 @@ export function createSessionHooks(args: {
|
||||
|
||||
// Model fallback hook (configurable via model_fallback config + disabled_hooks)
|
||||
// This handles automatic model switching when model errors occur
|
||||
const isModelFallbackConfigEnabled = pluginConfig.model_fallback ?? false
|
||||
const isModelFallbackConfigEnabled = pluginConfig.model_fallback ?? true
|
||||
const modelFallback = isModelFallbackConfigEnabled && isHookEnabled("model-fallback")
|
||||
? safeHook("model-fallback", () =>
|
||||
createModelFallbackHook({
|
||||
|
||||
Reference in New Issue
Block a user