Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eafb339281 | |||
| f03dd87502 | |||
| 6e475074a4 |
@@ -1 +1 @@
|
||||
__version__ = "4.13.2"
|
||||
__version__ = "4.13.0"
|
||||
|
||||
@@ -84,7 +84,7 @@ class LocalPythonTool(FunctionTool):
|
||||
self, context: ContextWrapper[AstrAgentContext], code: str, silent: bool = False
|
||||
) -> ToolExecResult:
|
||||
if context.context.event.role != "admin":
|
||||
return "error: Permission denied. Local Python execution is only allowed for admin users. Tell user to set admins in AstrBot WebUI."
|
||||
return "error: Permission denied. Local Python execution is only allowed for admin users. Set admins in AstrBot WebUI."
|
||||
|
||||
sb = get_local_booter()
|
||||
try:
|
||||
|
||||
@@ -47,7 +47,7 @@ class ExecuteShellTool(FunctionTool):
|
||||
env: dict = {},
|
||||
) -> ToolExecResult:
|
||||
if context.context.event.role != "admin":
|
||||
return "error: Permission denied. Shell execution is only allowed for admin users. Tell user to Set admins in AstrBot WebUI."
|
||||
return "error: Permission denied. Shell execution is only allowed for admin users. Set admins in AstrBot WebUI."
|
||||
|
||||
if self.is_local:
|
||||
sb = get_local_booter()
|
||||
|
||||
@@ -5,7 +5,7 @@ from typing import Any, TypedDict
|
||||
|
||||
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
|
||||
|
||||
VERSION = "4.13.2"
|
||||
VERSION = "4.13.0"
|
||||
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
|
||||
|
||||
WEBHOOK_SUPPORTED_PLATFORMS = [
|
||||
|
||||
@@ -582,7 +582,9 @@ class InternalAgentSubStage(Stage):
|
||||
req.extra_user_content_parts.append(
|
||||
TextPart(text=f"[Image Attachment: path {image_path}]")
|
||||
)
|
||||
elif isinstance(comp, File):
|
||||
elif isinstance(comp, File) and self.sandbox_cfg.get(
|
||||
"enable", False
|
||||
):
|
||||
file_path = await comp.get_file()
|
||||
file_name = comp.name or os.path.basename(file_path)
|
||||
req.extra_user_content_parts.append(
|
||||
@@ -609,10 +611,7 @@ class InternalAgentSubStage(Stage):
|
||||
logger.error(f"Error occurred while applying file extract: {e}")
|
||||
|
||||
if not req.prompt and not req.image_urls:
|
||||
if not event.get_group_id() and req.extra_user_content_parts:
|
||||
req.prompt = "<attachment>"
|
||||
else:
|
||||
return
|
||||
return
|
||||
|
||||
# call event hook
|
||||
if await call_event_hook(event, EventType.OnLLMRequestEvent, req):
|
||||
|
||||
@@ -17,8 +17,7 @@ from astrbot.core.utils.astrbot_path import (
|
||||
|
||||
SKILLS_CONFIG_FILENAME = "skills.json"
|
||||
DEFAULT_SKILLS_CONFIG: dict[str, dict] = {"skills": {}}
|
||||
# SANDBOX_SKILLS_ROOT = "/home/shared/skills"
|
||||
SANDBOX_SKILLS_ROOT = "skills"
|
||||
SANDBOX_SKILLS_ROOT = "/home/shared/skills"
|
||||
|
||||
_SKILL_NAME_RE = re.compile(r"^[A-Za-z0-9._-]+$")
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
## What's Changed
|
||||
|
||||
### fixes
|
||||
|
||||
- feat(chat): refactor message rendering and introduce ToolCallItem component
|
||||
- fix(db): using lambda expression to ensure updated_at field ([#4730](https://github.com/AstrBotDevs/AstrBot/issues/4730))
|
||||
- fix(skills): update SANDBOX_SKILLS_ROOT path to use relative directory
|
||||
@@ -1,8 +0,0 @@
|
||||
## What's Changed
|
||||
|
||||
### fixes
|
||||
|
||||
- feat(chat): feat: trace and log file config ([#4747](https://github.com/AstrBotDevs/AstrBot/issues/4747))
|
||||
- fix: WebUI shows success message when skills upload failed ([#4768](https://github.com/AstrBotDevs/AstrBot/issues/4768))
|
||||
- fix: cannot use tools when using skills-like tool schema mode ([#4775](https://github.com/AstrBotDevs/AstrBot/issues/4775))
|
||||
- fix(context): llm tools' origin in WebUI displayed `unknown` ([#4776](https://github.com/AstrBotDevs/AstrBot/issues/4776))
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "AstrBot"
|
||||
version = "4.13.2"
|
||||
version = "4.13.0"
|
||||
description = "Easy-to-use multi-platform LLM chatbot and development framework"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in New Issue
Block a user