forked from templates/template-go-orm
chore: update gitignore and router timeout
- Добавлены docs/ и CLAUDE.md в .gitignore - Таймаут роутера увеличен до 30 секунд Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -20,3 +20,7 @@ python/.venv/
|
||||
|
||||
# env
|
||||
.env
|
||||
|
||||
# docs и инструкции для Claude
|
||||
docs/
|
||||
CLAUDE.md
|
||||
|
||||
@@ -23,7 +23,7 @@ type ResponsesInputMessage struct {
|
||||
|
||||
// ContentPart — элемент массива content в Responses API
|
||||
type ContentPart struct {
|
||||
Type string `json:"type"` // "input_text", "output_text", etc.
|
||||
Type string `json:"type"` // "input_text", "output_text"
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user