diff --git a/en/.doctrees/environment.pickle b/en/.doctrees/environment.pickle index 8c17c92b6..b36daec14 100644 Binary files a/en/.doctrees/environment.pickle and b/en/.doctrees/environment.pickle differ diff --git a/en/.doctrees/index.doctree b/en/.doctrees/index.doctree index 6fcdaec81..074024723 100644 Binary files a/en/.doctrees/index.doctree and b/en/.doctrees/index.doctree differ diff --git a/en/_modules/agentscope/logging.html b/en/_modules/agentscope/logging.html index c4a619802..a024a0808 100644 --- a/en/_modules/agentscope/logging.html +++ b/en/_modules/agentscope/logging.html @@ -305,7 +305,7 @@
if record["level"].name == LEVEL_SAVE_LOG:
return "{message}\n"
else:
- return _DEFAULT_LOG_FORMAT
+ return _DEFAULT_LOG_FORMAT + "\n"
@@ -324,6 +324,9 @@ Source code for agentscope.logging
`"DEBUG"`, `"INFO"`, `"SUCCESS"`, `"WARNING"`, `"ERROR"`,
`"CRITICAL"`.
"""
+ # set logging level
+ logger.remove()
+
# avoid reinit in subprocess
if not hasattr(logger, "chat"):
# add chat function for logger
@@ -333,8 +336,6 @@ Source code for agentscope.logging
logger.level(LEVEL_SAVE_MSG, no=53)
logger.chat = log_msg
- # set logging level
- logger.remove()
# standard output for all logging except chat
logger.add(
sys.stdout,
diff --git a/en/_modules/agentscope/service/service_toolkit.html b/en/_modules/agentscope/service/service_toolkit.html
index bc21b2d8b..851ff390a 100644
--- a/en/_modules/agentscope/service/service_toolkit.html
+++ b/en/_modules/agentscope/service/service_toolkit.html
@@ -122,7 +122,6 @@
Source code for agentscope.service.service_toolkit
# -*- coding: utf-8 -*-
"""Service Toolkit for service function usage."""
-import collections.abc
import json
from functools import partial
import inspect
@@ -162,7 +161,10 @@ Source code for agentscope.service.service_toolkit
Source code for agentscope.service.service_toolkitSource code for agentscope.service.service_toolkit a.language.name.localeCompare(b.language.name));
+
const languagesHTML = `
- Languages
- ${config.projects.translations
+ ${languages
.map(
(translation) => `
-
diff --git a/zh_CN/.doctrees/environment.pickle b/zh_CN/.doctrees/environment.pickle
index 2c1c0d7ce..452f5e80e 100644
Binary files a/zh_CN/.doctrees/environment.pickle and b/zh_CN/.doctrees/environment.pickle differ
diff --git a/zh_CN/.doctrees/index.doctree b/zh_CN/.doctrees/index.doctree
index 52973341d..513b40368 100644
Binary files a/zh_CN/.doctrees/index.doctree and b/zh_CN/.doctrees/index.doctree differ
diff --git a/zh_CN/_modules/agentscope/logging.html b/zh_CN/_modules/agentscope/logging.html
index a4fd7666f..e77aa56d9 100644
--- a/zh_CN/_modules/agentscope/logging.html
+++ b/zh_CN/_modules/agentscope/logging.html
@@ -309,7 +309,7 @@
agentscope.logging 源代码
if record["level"].name == LEVEL_SAVE_LOG:
return "{message}\n"
else:
- return _DEFAULT_LOG_FORMAT
+ return _DEFAULT_LOG_FORMAT + "\n"
@@ -328,6 +328,9 @@ agentscope.logging 源代码
`"DEBUG"`, `"INFO"`, `"SUCCESS"`, `"WARNING"`, `"ERROR"`,
`"CRITICAL"`.
"""
+ # set logging level
+ logger.remove()
+
# avoid reinit in subprocess
if not hasattr(logger, "chat"):
# add chat function for logger
@@ -337,8 +340,6 @@ agentscope.logging 源代码
logger.level(LEVEL_SAVE_MSG, no=53)
logger.chat = log_msg
- # set logging level
- logger.remove()
# standard output for all logging except chat
logger.add(
sys.stdout,
diff --git a/zh_CN/_modules/agentscope/service/service_toolkit.html b/zh_CN/_modules/agentscope/service/service_toolkit.html
index 39cac3070..238097c6c 100644
--- a/zh_CN/_modules/agentscope/service/service_toolkit.html
+++ b/zh_CN/_modules/agentscope/service/service_toolkit.html
@@ -126,7 +126,6 @@
agentscope.service.service_toolkit 源代码
# -*- coding: utf-8 -*-
"""Service Toolkit for service function usage."""
-import collections.abc
import json
from functools import partial
import inspect
@@ -166,7 +165,10 @@ agentscope.service.service_toolkit 源代码
agentscope.service.service_toolkit 源代码agentscope.service.service_toolkit 源代码agentscope.service.service_toolkit 源代码agentscope.service.service_toolkit 源代码 a.language.name.localeCompare(b.language.name));
+
const languagesHTML = `
- Languages
- ${config.projects.translations
+ ${languages
.map(
(translation) => `
-