controller: 翻訳モデル選択時にモデル適用とクライアント更新を確実に行うよう修正
- デフォルト選択時および明示的なモデル設定時に model.setTranslatorXModel(...) を呼び出し、モデル状態を確実に反映 - OpenAI/LMStudio/Ollama/Plamo/Gemini/Ollama でクライアント更新を適切な箇所に追加して整合性を向上 mainloop: LMStudio/Ollama 接続チェックのエンドポイントを run 系に変更、ローマ字変換関連を追加 - "/get/data/*_connection" → "/run/*_connection" に変更(LMStudio/Ollama) - ローマ字変換(convert_message_to_romaji) のマッピングを追加(取得/有効化/無効化) translation_ollama: 認証チェックのエンドポイント呼び出しを修正 - base_url + "/api/ping" ではなく base_url 直下に対して GET を行うよう変更(環境による応答差異に対応)
This commit is contained in:
@@ -15,7 +15,7 @@ def _authentication_check(base_url: str | None = None) -> bool:
|
||||
"""Check authentication for Ollama API.
|
||||
"""
|
||||
try:
|
||||
response = requests.get(f"{base_url}/api/ping")
|
||||
response = requests.get(f"{base_url}")
|
||||
if response.status_code == 200:
|
||||
return True
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user