mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: Pass openRouterBaseUrl argument to OpenRouterEmbedder constructor in service-factory.ts
This commit is contained in:
parent
b04b752041
commit
3967cd5ca9
2 changed files with 3 additions and 3 deletions
|
|
@ -165,9 +165,8 @@ describe("CodeIndexOrchestrator - error path cleanup gating", () => {
|
|||
const callArgs = mockEmbedderCtor.mock.calls[0]
|
||||
expect(callArgs[0]).toBe("test-api-key")
|
||||
expect(callArgs[1]).toBe("openai/text-embedding-3-large")
|
||||
expect(callArgs[3]).toBe(undefined)
|
||||
expect(callArgs[4]).toBe(undefined)
|
||||
// openRouterBaseUrl is not passed in current factory logic
|
||||
expect(callArgs[3]).toBe(undefined) // specificProvider
|
||||
expect(callArgs[4]).toBe(testBaseUrl) // openRouterBaseUrl is now passed correctly
|
||||
})
|
||||
|
||||
it("should validate openRouterBaseUrl via OpenRouterEmbedder.validateConfiguration", async () => {
|
||||
|
|
|
|||
|
|
@ -96,6 +96,7 @@ export class CodeIndexServiceFactory {
|
|||
config.modelId,
|
||||
undefined, // maxItemTokens
|
||||
config.openRouterOptions.specificProvider,
|
||||
config.openRouterOptions.openRouterBaseUrl,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue