-
Notifications
You must be signed in to change notification settings - Fork 13.8k
anthropic legal requests #18186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anthropic legal requests #18186
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -207,18 +207,12 @@ export namespace LLM { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| maxOutputTokens, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| abortSignal: input.abort, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| headers: { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...(input.model.providerID.startsWith("opencode") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ? { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-project": Instance.project.id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-session": input.sessionID, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-request": input.user.id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-client": Flag.OPENCODE_CLIENT, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| : input.model.providerID !== "anthropic" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ? { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "User-Agent": `opencode/${Installation.VERSION}`, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| : undefined), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...(input.model.providerID.startsWith("opencode") && { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-project": Instance.project.id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-session": input.sessionID, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-request": input.user.id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "x-opencode-client": Flag.OPENCODE_CLIENT, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
209
to
+215
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The original logic sent This is likely an unintended side-effect of removing the If intentional, this should be documented. If unintentional, consider restoring it:
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...input.model.headers, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ...headers, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -307,8 +307,6 @@ For custom inference profiles, use the model and provider name in the key and se | |
| ```txt | ||
| ┌ Select auth method | ||
| │ | ||
| │ Claude Pro/Max | ||
| │ Create an API Key | ||
| │ Manually enter API Key | ||
| └ | ||
| ``` | ||
|
|
@@ -320,14 +318,20 @@ For custom inference profiles, use the model and provider name in the key and se | |
| ``` | ||
|
|
||
| :::info | ||
| Using your Claude Pro/Max subscription in OpenCode is not officially supported by [Anthropic](https://anthropic.com). | ||
| ::: | ||
| There are plugins that allow you to use your Claude Pro/Max models with | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did they make this change? Did they receive a warning letter or something like that? |
||
| OpenCode. Anthropic explicitly prohibits this. | ||
|
|
||
| ##### Using API keys | ||
| Previous versions of OpenCode came bundled with these plugins but that is no | ||
| longer the case as of 1.3.0 | ||
|
|
||
| You can also select **Create an API Key** if you don't have a Pro/Max subscription. It'll also open your browser and ask you to login to Anthropic and give you a code you can paste in your terminal. | ||
| Other companies support freedom of choice with developer tooling - you can use | ||
| the following subscriptions in OpenCode with zero setup: | ||
|
|
||
| - ChatGPT Plus | ||
| - Github Copilot | ||
| - Gitlab Duo | ||
| ::: | ||
|
|
||
| Or if you already have an API key, you can select **Manually enter API Key** and paste it in your terminal. | ||
|
|
||
| --- | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of deleting it, it was easier to implement a solution.
You probably deleted it because your grandma hit you in the mouth with a slipper and you got scared.
You're pathetic.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@titet11 No need to be dramatic, you're free to use https://github.com/griffinmartin/opencode-claude-auth or the plethora of other solutions that have been made in response to this.