mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 02:12:46 +08:00
fix: improve bool param validation and preserve None tools
- Fix bool type checking in CommandFilter.validate_and_convert_params (was using isinstance(bool_instance, bool) instead of 'bool is bool') - Preserve tools=None when persona explicitly has no tools - Add missing provider_wake_prefix in test setup
This commit is contained in:
@@ -28,6 +28,8 @@ async def test_internal_stage_uses_effective_runner_streaming_flag():
|
||||
stage = InternalAgentSubStage()
|
||||
stage.ctx = MagicMock()
|
||||
stage.ctx.plugin_manager.context = MagicMock()
|
||||
stage.ctx.astrbot_config = {"provider_settings": {"wake_prefix": "!"}}
|
||||
stage.provider_wake_prefix = "!"
|
||||
stage.streaming_response = True
|
||||
stage.unsupported_streaming_strategy = "realtime_segmenting"
|
||||
stage.max_step = 5
|
||||
|
||||
Reference in New Issue
Block a user