mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: use custom Base URL for OpenRouter model list fetch (#11154)
Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
c5874fc764
commit
67fb150727
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ async function fetchModelsFromProvider(options: GetModelsOptions): Promise<Model
|
|||
|
||||
switch (provider) {
|
||||
case "openrouter":
|
||||
models = await getOpenRouterModels()
|
||||
models = await getOpenRouterModels({ openRouterBaseUrl: options.baseUrl })
|
||||
break
|
||||
case "requesty":
|
||||
// Requesty models endpoint requires an API key for per-user custom policies.
|
||||
|
|
|
|||
|
|
@ -894,7 +894,7 @@ export const webviewMessageHandler = async (
|
|||
|
||||
// Base candidates (only those handled by this aggregate fetcher)
|
||||
const candidates: { key: RouterName; options: GetModelsOptions }[] = [
|
||||
{ key: "openrouter", options: { provider: "openrouter" } },
|
||||
{ key: "openrouter", options: { provider: "openrouter", baseUrl: apiConfiguration.openRouterBaseUrl } },
|
||||
{
|
||||
key: "requesty",
|
||||
options: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue