Skip to content

Commit 7a25a59

Browse files
authored
Merge pull request #7 from LavX/ai_translate
feat: add OpenRouter support to translation service options
2 parents 6658a01 + 056a22d commit 7a25a59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/src/components/forms/TranslationForm.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ const TranslationForm: FunctionComponent<Props> = ({
190190
...defaultConfig,
191191
service: "Lingarr",
192192
};
193+
case "openrouter":
194+
return {
195+
...defaultConfig,
196+
service: "AI Translator",
197+
model: ` (${settings?.data?.translator?.openrouter_model || ""})`,
198+
};
193199
default:
194200
return defaultConfig;
195201
}

0 commit comments

Comments
 (0)