Save AI settings before testing key
This commit is contained in:
@@ -428,6 +428,7 @@ function markAiSettingsDirty() {
|
||||
}
|
||||
|
||||
async function testOpenAiKey() {
|
||||
await saveTranslationSettings();
|
||||
setOpenAiStatus("Testuji OpenAI klic...");
|
||||
const result = await api("/api/admin/ai/test", { method: "POST" }).catch((error) => error);
|
||||
if (result?.ok) {
|
||||
|
||||
Reference in New Issue
Block a user