mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fix
This commit is contained in:
parent
4a75f85eac
commit
3d5780f44e
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ export class OpenRouterHandler implements ApiHandler, SingleCompletionHandler {
|
|||
constructor(options: ApiHandlerOptions) {
|
||||
this.options = options
|
||||
this.client = new OpenAI({
|
||||
baseURL: this.options.openRouterBaseUrl,
|
||||
baseURL: this.options.openRouterBaseUrl || "https://openrouter.ai/api/v1",
|
||||
apiKey: this.options.openRouterApiKey,
|
||||
defaultHeaders: {
|
||||
"HTTP-Referer": "https://github.com/RooVetGit/Roo-Cline",
|
||||
|
|
|
|||
|
|
@ -330,7 +330,7 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||
|
||||
{openRouterBaseUrlSelected && (
|
||||
<VSCodeTextField
|
||||
value={apiConfiguration?.openRouterBaseUrl || "https://openrouter.ai/api/v1"}
|
||||
value={apiConfiguration?.openRouterBaseUrl || ""}
|
||||
style={{ width: "100%", marginTop: 3 }}
|
||||
type="url"
|
||||
onInput={handleInputChange("openRouterBaseUrl")}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue