Commit graph

2 commits

Author SHA1 Message Date
Replit Agent
29853219bc Improve AI model compatibility warnings and error handling
Add detection for OpenAI models that only support v1/responses and are not compatible with chat completions, providing user-friendly warnings during model selection and clearer error messages upon connection testing or AI analysis execution.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0d01f99a-ea6a-447d-82fd-311715434a39
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ac489071-6c6a-4584-9740-76bf6ca16040
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/e32d2b99-1721-47dd-833c-98b372f48008/0d01f99a-ea6a-447d-82fd-311715434a39/upEITG1
Replit-Helium-Checkpoint-Created: true
2026-06-16 21:35:24 +00:00
Replit Agent
2695883f0d Add provider endpoint preset dropdown to admin AI provider forms
User request: implement selection of default endpoints for known AI
providers in the "New AI provider" dropdown, including chat completion
endpoints.

Changes (artifacts/skillguard/src/pages/admin.tsx):
- Added PROVIDER_PRESETS constant with 9 OpenAI-compatible presets
  (OpenAI, Groq, OpenRouter, Mistral AI, DeepSeek, Together AI,
  Perplexity AI, Ollama lokal, LM Studio lokal) and 1 Anthropic preset.
- Added addPreset / editPreset state + addSelectedPreset /
  editSelectedPreset derived values to ProviderTab.
- Both Add and Edit dialogs now show an "Anbieter-Voreinstellung"
  dropdown (hidden for apiType=custom) between the API-type and
  Base-URL fields. Selecting a preset auto-fills the Base URL and resets
  discovery state.
- On selection, a mono info panel shows both the Base URL and the full
  Chat Completions endpoint for the chosen preset.
- apiType change clears the preset and (in Add form) also clears the
  baseUrl so no stale URL from a different provider type persists.
- Removed the old static hint text (baseUrlHintOpenai / baseUrlHintAnthropic)
  since the dropdown replaces it.

i18n (locales/de/en/es/admin.ts):
- Added endpointPreset and endpointPresetPlaceholder keys to all three
  language files.

Also fixed in this session: ran orval codegen after the i18n task merge
left the generated types stale (language/lang fields missing from
SkillScanInput, ScanDetail, useListRules); typecheck now fully green.
2026-06-16 17:46:59 +00:00