[Feature] 增加provider开关,用于禁用Anthropic提示词缓存功能
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start by locating where the Anthropic provider injects cache_control: ephemeral and how provider settings are exposed in the WebUI and configuration. Trace the existing provider options and their tests to identify the relevant entry points. Done means users can disable prompt caching through a configurable setting and the provider omits cache creation when it is disabled.
Written by the indexing model from the issue text.
Description
功能描述
AstrBot 目前对 Anthropic Provider 默认启用 Prompt Caching(通过注入 cache_control: ephemeral),但部分用户(如使用第三方计费渠道或特定代理网关时)需要关闭缓存创建以避免额外费用或兼容性问题。目前 WebUI 和配置文件中均无相关开关,希望增加一个可配置项。
使用场景
· 某些第三方 Anthropic 兼容网关对 cache_control 字段支持不完整,出现无法进行缓存,请求异常的情况。
· 需要在调试或对比测试中,验证关闭缓存对响应质量和延迟的影响。
检查清单
- Dominant language
- Python
- Stars
- 46.9k
- Forks
- 3.6k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 136
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AstrBotDevs/AstrBot
-
[Bug] Sending a Telegram message chain twice duplicates mentionsPossibly taken @123XieC claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AstrBotDevs/AstrBot#11125 ·
Maintainers usually reply within 1 day
-
[Bug] Telegram album debounce exceeds the maximum waitPossibly taken @123XieC claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AstrBotDevs/AstrBot#11123 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AstrBotDevs/AstrBot#11034 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] OpenAI-compatible Gemini 工具 schema const 导致 400Possibly taken @arccat-114 claimed this 26 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
AstrBotDevs/AstrBot#10720 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Discord slash command sync aborts with KeyError when a plugin handler is defined in a submodulePossibly taken @yuexia5 claimed this 31 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
AstrBotDevs/AstrBot#10626 · 1 comment ·
Maintainers usually reply within 1 day
All issues in AstrBotDevs/AstrBot
Similar issues
-
ready-for-agent
Difficulty 1/5 1-3 hours Newbie friendliness 79/100
gregwebs/agent-vm-images#216 ·
Maintainers usually reply within 1 day
-
Layout accepts a step threshold of 0 or less, then in-toto-verify crashes with StopIterationPossibly taken @BahaaMattar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gcivil-nyu-org/team5-mon-fall26#145 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gcivil-nyu-org/team3-mon-fall26#156 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
antlr/grammars-v4#5220 ·
Maintainers usually reply within 1 day