Problems fixed: 1. 401 unauthorized on chat — OLLAMA_API_KEY was not set in containers - Created docker/.env with real API key - Added OLLAMA_BASE_URL + OLLAMA_API_KEY to control-center in docker-compose.yml 2. AgentDetailModal/AgentCreateModal showed hardcoded providers list (Ollama, OpenAI, Anthropic, Mistral, Groq) regardless of what is configured - Removed const PROVIDERS = [...] from both modals - Now loads providers via trpc.config.providers (server-side) - Only shows providers that are actually configured in env 3. Settings.tsx had API key hardcoded in frontend source code (security issue) - API key removed from frontend - New trpc.config.providers endpoint returns masked key (first 8 chars + ***) - Shows red warning badge 'NO KEY — chat will fail' if key is missing - Base URL read from server env, not hardcoded New tRPC endpoint: config.providers - Returns list of configured providers with name, baseUrl, hasKey, maskedKey - Provider name auto-detected from URL (ollama.com → 'Ollama Cloud', etc.)
2 lines
75 B
Plaintext
2 lines
75 B
Plaintext
https://x-access-token:ghs_b4NOitjlosRPPypJr3KupAZqrOXlxr4fq5Z9@github.com
|