From 267831b57a5f04589302b9307a24b48858f6cd0f Mon Sep 17 00:00:00 2001 From: fedos Date: Sun, 8 Mar 2026 23:56:35 +0300 Subject: [PATCH] chore: update gitignore and router timeout --- .gitignore | 4 ++++ internal/service/router.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4dd9262..682048e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,7 @@ python/.venv/ # env .env + +# docs и инструкции для Claude +docs/ +CLAUDE.md diff --git a/internal/service/router.go b/internal/service/router.go index 3959dff..7f9c279 100644 --- a/internal/service/router.go +++ b/internal/service/router.go @@ -73,7 +73,7 @@ func (r *Router) Route(ctx context.Context, modelName string, messages []model.M "- general is the LAST resort, not the default\n\n" + "Reply with ONLY one word: code, document, or general. Nothing else." - classifyCtx, cancel := context.WithTimeout(ctx, 10*time.Second) + classifyCtx, cancel := context.WithTimeout(ctx, 30*time.Second) defer cancel() response, err := r.client.CompleteWithSystem(classifyCtx, r.cfg.RouterModel, systemPrompt, firstMsg)