ai-chat-android-auto / files / app / src / main / java / net / fuzzyworld / aichat / ProviderRegistry.kt
ProviderRegistry.kt
d522fe6d 2026-05-15 Pavel Safronov | 1 | package net.fuzzyworld.aichat |
449ce939 2026-05-14 Pavel Safronov | 2 | |
| 3 | internal const val SYSTEM_PROMPT = | |
| 4 | "You are a voice assistant in a car. Be concise and conversational — " + | |
| 5 | "keep responses to 1–3 sentences unless genuinely more detail is needed. " + | |
| 6 | "Never use markdown, bullet points, code blocks, or lists. " + | |
| 7 | "Speak naturally, as if talking to a driver." | |
| 8 | ||
| 9 | object ProviderRegistry { | |
| 10 | val all: List<AiProvider> = listOf( | |
| 11 | AnthropicProvider, | |
| 12 | OpenAiProvider, | |
| 13 | GroqProvider, | |
| 14 | MistralProvider, | |
| 15 | GeminiProvider, | |
| 16 | OllamaProvider, | |
| 17 | CustomOpenAiProvider, | |
| 18 | ) | |
| 19 | ||
| 20 | fun byId(id: String): AiProvider = all.find { it.id == id } ?: AnthropicProvider | |
| 21 | } |