mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Remove unusable models; default to OpenRouter for new users; update Announcement
This commit is contained in:
@@ -32,8 +32,8 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
||||
applications or fix bugs with screenshots
|
||||
</li>
|
||||
<li>
|
||||
Added a settings option to choose other Claude models (+ GPT-4o, Gemini, DeepSeek, and Mistral if
|
||||
you use OpenRouter)
|
||||
Added a settings option to choose other Claude models (+ GPT-4o, DeepSeek, and Mistral if you use
|
||||
OpenRouter)
|
||||
</li>
|
||||
<li>
|
||||
Improved support for running interactive terminal commands and long-running processes like servers
|
||||
|
||||
@@ -66,8 +66,8 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiConfigurat
|
||||
<span style={{ fontWeight: 500 }}>API Provider</span>
|
||||
</label>
|
||||
<VSCodeDropdown id="api-provider" value={selectedProvider} onChange={handleInputChange("apiProvider")}>
|
||||
<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
|
||||
<VSCodeOption value="openrouter">OpenRouter</VSCodeOption>
|
||||
<VSCodeOption value="anthropic">Anthropic</VSCodeOption>
|
||||
<VSCodeOption value="bedrock">AWS Bedrock</VSCodeOption>
|
||||
</VSCodeDropdown>
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,7 @@ import React, { useEffect, useState } from "react"
|
||||
import { validateApiConfiguration } from "../utils/validate"
|
||||
import { vscode } from "../utils/vscode"
|
||||
import ApiOptions from "./ApiOptions"
|
||||
import { useEffectOnce } from "react-use"
|
||||
|
||||
interface WelcomeViewProps {
|
||||
apiConfiguration?: ApiConfiguration
|
||||
@@ -23,6 +24,13 @@ const WelcomeView: React.FC<WelcomeViewProps> = ({ apiConfiguration, setApiConfi
|
||||
setApiErrorMessage(validateApiConfiguration(apiConfiguration))
|
||||
}, [apiConfiguration])
|
||||
|
||||
useEffectOnce(() => {
|
||||
setApiConfiguration((prevConfig) => ({
|
||||
...prevConfig,
|
||||
apiProvider: "openrouter",
|
||||
}))
|
||||
})
|
||||
|
||||
return (
|
||||
<div style={{ position: "fixed", top: 0, left: 0, right: 0, bottom: 0, padding: "0 20px" }}>
|
||||
<h2>Hi, I'm Claude Dev</h2>
|
||||
|
||||
Reference in New Issue
Block a user