33 lines
1.3 KiB
Dart
33 lines
1.3 KiB
Dart
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';
|
||
}
|