refactor: Projektstruktur in app/ und backend/ aufgeteilt
This commit is contained in:
32
app/lib/config/translation_config.dart
Normal file
32
app/lib/config/translation_config.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
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';
|
||||
}
|
||||
Reference in New Issue
Block a user