Quellcode durchsuchen

fix: kobold lite embedded UI on windows (#797)

AlpinDale vor 4 Monaten
Ursprung
Commit
43965f7bd9
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      aphrodite/endpoints/openai/api_server.py

+ 1 - 1
aphrodite/endpoints/openai/api_server.py

@@ -546,7 +546,7 @@ async def get_kobold_lite_ui():
         klitepath = os.path.join(scriptpath, "../kobold/klite.embd")
         klitepath = os.path.normpath(klitepath)  # Normalize the path
         if os.path.exists(klitepath):
-            with open(klitepath, "r") as f:
+            with open(klitepath, "r", encoding="utf-8") as f:
                 kobold_lite_ui = f.read()
         else:
             logger.error("Kobold Lite UI not found at " + klitepath)