Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

fix(windows): typing an http address on the internet for your own AI server now says right away that it needs https

wqugurud049dd06abca
diff --git a/site/changelog.json b/site/changelog.json
index 58ebf66..a7ac27b 100644
--- a/site/changelog.json
+++ b/site/changelog.json
@@ -556,6 +556,14 @@
],
"title": "交给 AI 服务听时,译文开头不再多出一句“会议主要使用英语。”。",
"text": ""
+ },
+ {
+ "kind": "fixed",
+ "platforms": [
+ "windows"
+ ],
+ "title": "Windows 自建服务的地址填成公网上的 http 时,会马上说要用 https。",
+ "text": "以前没填 key 时什么提示都没有,看不出地址为什么没生效;现在和 Mac 一样,地址下面直接写明:要用 https,这台电脑和局域网里的服务可以用 http。"
}
]
},
diff --git a/windows/src/Cicada/SettingsWindow.cs b/windows/src/Cicada/SettingsWindow.cs
index 01f6312..42b2929 100644
--- a/windows/src/Cicada/SettingsWindow.cs
+++ b/windows/src/Cicada/SettingsWindow.cs
@@ -531,9 +531,18 @@ sealed class SettingsWindow : Window
model = ModelMenu("text", c.TextModel, [], ling.TextCatalog);
}
else model = CustomField("text", s.AiModels.GetValueOrDefault("custom", ""), L("例如 qwen3:14b"));
+ var address = CustomField("base", s.AiCustomBase, "http://192.168.1.20:8000/v1");
+ // As typed (AISettings.swift › textSection): an http address out on the internet is refused,
+ // and without a key no check runs to say so.
+ var badAddress = Line(L("地址要用 https;这台电脑和局域网里的服务可以用 http。"), Palette.Danger);
+ var baseBox = customFields["base"];
+ void Bad() => badAddress.Visibility = baseBox.Text.Trim().Length > 0 && AIProvider.CustomBase(baseBox.Text) is null ? Visibility.Visible : Visibility.Collapsed;
+ baseBox.TextChanged += (_, _) => Bad();
+ Bad();
var parts = new List<FrameworkElement>
{
- Card(null, L("地址"), null, CustomField("base", s.AiCustomBase, "http://192.168.1.20:8000/v1")),
+ Card(null, L("地址"), null, address),
+ badAddress,
Card(null, L("模型"), null, model),
Card(null, "key", null, CustomKey()),
};