Add configurable model specifically for automatic remediation actions: Backend (internal/config/ai.go): - Add AutoFixModel field to AIConfig - Add GetAutoFixModel() getter with fallback chain: AutoFixModel -> PatrolModel -> Model Frontend (AISettings.tsx, types/ai.ts): - Add auto_fix_model to AISettings types - Add Auto-Fix Model dropdown (only shows when patrol_auto_fix enabled) - Falls back to patrol model if not set API (ai_handlers.go): - Add auto_fix_model to response and update request - Handle saving/loading the new field Rationale: - Auto-fix takes real actions, may warrant a more capable model - Patrol observation can use cheaper models for cost savings - Gives users granular control over model costs vs reliability - Model hierarchy: Chat > AutoFix > Patrol > Default |
||
|---|---|---|
| .. | ||
| ai.go | ||
| ai_usage_persistence_test.go | ||
| api_tokens.go | ||
| api_tokens_test.go | ||
| client_helpers.go | ||
| client_helpers_test.go | ||
| config.go | ||
| config_utils_test.go | ||
| detect_root.go | ||
| docker_metadata.go | ||
| docker_metadata_test.go | ||
| export.go | ||
| export_test.go | ||
| guest_metadata.go | ||
| guest_metadata_test.go | ||
| host_metadata.go | ||
| import_transaction.go | ||
| import_transaction_test.go | ||
| oidc.go | ||
| oidc_test.go | ||
| persistence.go | ||
| persistence_fail_test.go | ||
| persistence_test.go | ||
| watcher.go | ||