No description
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. |
||
|---|---|---|
| .agents/memory | ||
| artifacts | ||
| attached_assets | ||
| lib | ||
| scripts | ||
| .gitignore | ||
| .npmrc | ||
| .replit | ||
| .replitignore | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| replit.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||