mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 02:15:06 +00:00
fix: mini utf fix
This commit is contained in:
1 parent
a53cf918f2
commit
5b8f0a5319
1 file changed
+4
-2
@@ -88,13 +88,15 @@ class SystemNamespace(NamespaceBuilder):
|
||||
else None
|
||||
)
|
||||
if _platform_partial_content is None:
|
||||
_platform_partial_content = _PLATFORM_PARTIAL_PATH.read_text()
|
||||
_platform_partial_content = _PLATFORM_PARTIAL_PATH.read_text(encoding="utf-8")
|
||||
platform = TemplateEngine().render(
|
||||
_platform_partial_content, {"api_base_url": api_base_url}
|
||||
).strip()
|
||||
return api_base_url, platform
|
||||
except Exception as e:
|
||||
logger.warning(f"Failed to build platform capabilities block: {e}")
|
||||
logger.warning(
|
||||
f"Failed to build platform capabilities block: {e}", exc_info=True
|
||||
)
|
||||
return None, ""
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user