GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — tweak: include anthropic spoof for providers including "anthropic" in name by Gardelll · Pull Request #5166 · anomalyco/opencode Conversation
|
There was an error while loading. Please reload this page.
|
The anthropic spoof is there solely for coding max/pro plans, are you running opencode through a proxy to your max plan? Because you may not really want that spoof unless you're doing that |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, it sounds unsafe, but there is indeed such a need. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I don't know if we should be including it all the time, for example: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
that is the only provider I see this being an issue for, but fr? You have a proxy setup that uses claude code subscriptions? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Maybe we should use another option to include this spoof for custom providers?
I am using a config like this to bypass regional restrictions: "anthropic-proxy": { "npm": "@ai-sdk/anthropic", "name": "ProxiedClaudeCode", "options": { "baseURL": "https://proxied-claude-endpoint/v1", "headers": { // claude code cli headers } }, "models": { // ... } } It is working fine but excludes title generation, etc. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
ig this is fine, should prolly just exclude the case I mentioned |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I tested this out, and also had Opus 4.5 do a local review and it noticed that this PR was missing a case; this patch should apply to the tip of this PR. On top of that, I think it'd be more elegant if we did it this way: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
FTR my interest in this PR is because we have this system prompt in our projects https://github.com/bootc-dev/infra/blob/dbc0159ca4b672e83cd3442917a5e8e0bfcb183d/common/AGENTS.md#attribution and I was really confused why most of the time OpenCode emitted |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This feature has been implemented in a different, unified way. However, special handling for google-vertex-anthropic is still lacking. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Friendly ping for review on this one, this is my biggest papercut right now with opencode. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It looks like 94dd0a8 obsoletes this. I have to say though "rm spoof" is quite a minimal commit message and could have used some rationale... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You can use the system message transform hook: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closed due to outdated. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.