Files
votianlt/app/lib/config/translation_config.dart

33 lines
1.3 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
enum TranslationBackend { lmStudio, moonshot }
class TranslationConfig {
TranslationConfig._();
/// Das aktive Übersetzungs-Backend.
/// Hier umschalten zwischen LM Studio (lokal) und Moonshot AI (Cloud).
static const TranslationBackend activeBackend = TranslationBackend.moonshot;
// ---------------------------------------------------------------------------
// LM Studio (lokales Modell)
// ---------------------------------------------------------------------------
/// Basis-URL des LM Studio REST-Servers (lokales Netzwerk)
static const String lmStudioBaseUrl = 'http://lmstudio.appcreation.de';
/// Modellname LM Studio ignoriert diesen Wert normalerweise
static const String lmStudioModel = 'local-model';
// ---------------------------------------------------------------------------
// Moonshot AI (Kimi Cloud API)
// ---------------------------------------------------------------------------
/// Basis-URL der Moonshot AI API
static const String moonshotBaseUrl = 'https://api.moonshot.ai/v1';
/// API-Key für die Moonshot AI Authentifizierung
static const String moonshotApiKey = 'sk-EfHJfwCsxiZbOoBJ21OLWb9RUJQXSXAFIFGKnOedKke5JYZp';
/// Moonshot-Modell: moonshot-v1-8k (kurze Texte), moonshot-v1-32k, moonshot-v1-128k
static const String moonshotModel = 'moonshot-v1-8k';
}