[PR #11276] fix(metadata): Some providers use requestbody(body.metadata.user_id) to enable cache features Fixes #8195 #13725

Open
opened 2026-02-16 18:18:33 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11276

State: open
Merged: No


What does this PR do?

Fixes #8195

allow user add a options to enable cache features.

opencode.json

    "provider": {
        "anthropic": {
            "name": "fox.anthropic.claude",
            "options": {
                "baseURL": "https://code.newcli.com/claude/aws/v1",
                "apiKey": "sk-ant-xxxxx",
                "setCacheKey": true,   
                "enableMeta":true    // fix provider cache
            },
.....

How did you verify your code works?

clone the project and

bun run dev
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11276 **State:** open **Merged:** No --- ### What does this PR do? Fixes #8195 allow user add a options to enable cache features. **opencode.json** ``` "provider": { "anthropic": { "name": "fox.anthropic.claude", "options": { "baseURL": "https://code.newcli.com/claude/aws/v1", "apiKey": "sk-ant-xxxxx", "setCacheKey": true, "enableMeta":true // fix provider cache }, ..... ``` ### How did you verify your code works? clone the project and ```bash bun run dev ```
yindo added the pull-request label 2026-02-16 18:18:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13725