mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: Rename assign baseUrl to const and remove property baseUrl
This commit is contained in:
parent
32310227b0
commit
d532401459
1 changed files with 1 additions and 2 deletions
|
|
@ -40,7 +40,6 @@ export class OpenRouterEmbedder implements IEmbedder {
|
|||
private readonly defaultModelId: string
|
||||
private readonly apiKey: string
|
||||
private readonly maxItemTokens: number
|
||||
private readonly baseUrl: string = "https://openrouter.ai/api/v1"
|
||||
private readonly specificProvider?: string
|
||||
|
||||
// Global rate limiting state shared across all instances
|
||||
|
|
@ -72,7 +71,7 @@ export class OpenRouterEmbedder implements IEmbedder {
|
|||
throw new Error(t("embeddings:validation.apiKeyRequired"))
|
||||
}
|
||||
|
||||
let baseUrl = openRouterBaseUrl || "https://openrouter.ai/api/v1"
|
||||
const baseUrl = openRouterBaseUrl || "https://openrouter.ai/api/v1"
|
||||
|
||||
this.apiKey = apiKey
|
||||
// Only set specificProvider if it's not the default value
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue