enhancement: use baseUrl from arguments rather than read only property that no longer exists.

This commit is contained in:
Toray Altas 2025-12-25 19:01:17 -05:00
parent bc0b5a49f6
commit 32310227b0

View file

@ -82,7 +82,7 @@ export class OpenRouterEmbedder implements IEmbedder {
// Wrap OpenAI client creation to handle invalid API key characters
try {
this.embeddingsClient = new OpenAI({
baseURL: this.baseUrl,
baseURL: baseUrl,
apiKey: apiKey,
defaultHeaders: {
"HTTP-Referer": "https://github.com/RooCodeInc/Roo-Code",