尝试的模型:gemma3、gemini-2.5-flash/lite
部分群聊会报错 且心流系统无法正常工作
尝试过重载、重启AstrBot均无效
以下是日志
[22:07:51] [Core] [ERRO] [sources.gemini_source:114]: 发生了错误(gemini_source)。Provider 配置如下: {'id': 'heartflow', 'provider': 'google', 'type': 'googlegenai_chat_completion', 'provider_type': 'chat_completion', 'enable': True, 'key': ['打码keys'], 'api_base': 'https://generativelanguage.googleapis.com/', 'timeout': 120, 'model_config': {'model': 'gemini-2.5-flash-lite'}, 'gm_resp_image_modal': False, 'gm_native_search': False, 'gm_native_coderunner': False, 'gm_url_context': False, 'gm_safety_settings': {'harassment': 'BLOCK_NONE', 'hate_speech': 'BLOCK_NONE', 'sexually_explicit': 'BLOCK_NONE', 'dangerous_content': 'BLOCK_NONE'}, 'gm_thinking_config': {'budget': 0}}
[22:07:51] [Plug] [ERRO] [astrbot_plugin_heartflow.main:336]: 小参数模型判断异常: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Please ensure that single turn requests end with a user role or the role field is empty.', 'status': 'INVALID_ARGUMENT'}}
尝试的模型:gemma3、gemini-2.5-flash/lite
部分群聊会报错 且心流系统无法正常工作
尝试过重载、重启AstrBot均无效
以下是日志
[22:07:51] [Core] [ERRO] [sources.gemini_source:114]: 发生了错误(gemini_source)。Provider 配置如下: {'id': 'heartflow', 'provider': 'google', 'type': 'googlegenai_chat_completion', 'provider_type': 'chat_completion', 'enable': True, 'key': ['打码keys'], 'api_base': 'https://generativelanguage.googleapis.com/', 'timeout': 120, 'model_config': {'model': 'gemini-2.5-flash-lite'}, 'gm_resp_image_modal': False, 'gm_native_search': False, 'gm_native_coderunner': False, 'gm_url_context': False, 'gm_safety_settings': {'harassment': 'BLOCK_NONE', 'hate_speech': 'BLOCK_NONE', 'sexually_explicit': 'BLOCK_NONE', 'dangerous_content': 'BLOCK_NONE'}, 'gm_thinking_config': {'budget': 0}}
[22:07:51] [Plug] [ERRO] [astrbot_plugin_heartflow.main:336]: 小参数模型判断异常: 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Please ensure that single turn requests end with a user role or the role field is empty.', 'status': 'INVALID_ARGUMENT'}}