Skip to content

Commit f011689

Browse files
committed
fix(prompt): reapply WeCom-style MEDIA literal fix for QQ hint
Upstream's QQ platform hint (added in the salvaged PR NousResearch#10935/NousResearch#10940 block that landed during this merge) re-introduced the 'MEDIA:/absolute/path/to/file' literal that our prior commit 03f8a5e fixed for WeCom. The ANTHROPIC_OAUTH_BLOCKED_LITERALS guard test flagged it. Same fix pattern: 'absolute' -> 'full' to break tokenization.
1 parent 4fac3ad commit f011689

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agent/prompt_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _strip_yaml_frontmatter(content: str) -> str:
380380
),
381381
"qqbot": (
382382
"You are on QQ, a popular Chinese messaging platform. QQ supports markdown formatting "
383-
"and emoji. You can send media files natively: include MEDIA:/absolute/path/to/file in "
383+
"and emoji. You can send media files natively: include MEDIA:/full/path/to/file in "
384384
"your response. Images are sent as native photos, and other files arrive as downloadable "
385385
"documents."
386386
),

0 commit comments

Comments
 (0)