mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
ProviderRequest.system_prompt defaults to None. When a persona with a prompt is configured, _ensure_persona_and_skills calls ``req.system_prompt += ...`` which crashes with ``TypeError`` when system_prompt is None. Added a None guard before the persona prompt injection and skills prompt appending sections so they always operate on a string.