refactor: Projektstruktur in app/ und backend/ aufgeteilt

This commit is contained in:
2026-03-24 15:06:44 +01:00
parent 5f5d5995c5
commit 2673ef658d
449 changed files with 28551 additions and 167 deletions

View 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';
}