mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Add OpenRouter disclaimer
This commit is contained in:
@@ -457,8 +457,8 @@ export class ClaudeDevProvider implements vscode.WebviewViewProvider {
|
|||||||
if (apiKey) {
|
if (apiKey) {
|
||||||
apiProvider = "anthropic"
|
apiProvider = "anthropic"
|
||||||
} else {
|
} else {
|
||||||
// New users should default to openrouter (better rate limits and wider model selection)
|
// New users should default to anthropic (openrouter has issues, bedrock is complicated)
|
||||||
apiProvider = "openrouter"
|
apiProvider = "anthropic"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -66,9 +66,9 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiConfigurat
|
|||||||
<span style={{ fontWeight: 500 }}>API Provider</span>
|
<span style={{ fontWeight: 500 }}>API Provider</span>
|
||||||
</label>
|
</label>
|
||||||
<VSCodeDropdown id="api-provider" value={selectedProvider} onChange={handleInputChange("apiProvider")}>
|
<VSCodeDropdown id="api-provider" value={selectedProvider} onChange={handleInputChange("apiProvider")}>
|
||||||
<VSCodeOption value="openrouter">OpenRouter</VSCodeOption>
|
|
||||||
<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
|
<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
|
||||||
<VSCodeOption value="bedrock">AWS Bedrock</VSCodeOption>
|
<VSCodeOption value="bedrock">AWS Bedrock</VSCodeOption>
|
||||||
|
<VSCodeOption value="openrouter">OpenRouter</VSCodeOption>
|
||||||
</VSCodeDropdown>
|
</VSCodeDropdown>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -113,7 +113,11 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiConfigurat
|
|||||||
This key is stored locally and only used to make API requests from this extension.
|
This key is stored locally and only used to make API requests from this extension.
|
||||||
<VSCodeLink href="https://openrouter.ai/" style={{ display: "inline" }}>
|
<VSCodeLink href="https://openrouter.ai/" style={{ display: "inline" }}>
|
||||||
You can get an OpenRouter API key by signing up here.
|
You can get an OpenRouter API key by signing up here.
|
||||||
</VSCodeLink>
|
</VSCodeLink>{" "}
|
||||||
|
<span style={{ color: "var(--vscode-errorForeground)" }}>
|
||||||
|
(<span style={{ fontWeight: 500 }}>Note:</span> OpenRouter support is experimental and may
|
||||||
|
not work well with large files.)
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user