fix(chain): route chain steps through the LLM gateway instead of always calling the premium proxy

Chains were pinned to the premium service, so they always failed in
anonymous local mode and sent text to the cloud for signed-in users who had
chosen the local backend.
This commit is contained in:
Yun Chan 2026-10-20 22:48:17 +09:00
parent 51a80ad56c
commit ce8d603b4a
2 changed files with 7 additions and 4 deletions

View file

@ -34,8 +34,9 @@ const mockLLM = vi.hoisted(() => ({
cancelGeneration: vi.fn()
}))
vi.mock('../../../src/main/services/PremiumLLMService', () => ({
getPremiumLLMService: () => mockLLM
// 체인은 백엔드 선택을 게이트웨이에 맡긴다(프리미엄 고정 아님)
vi.mock('../../../src/main/services/llm/LlmGateway', () => ({
getLlmGateway: () => mockLLM
}))
let getChainService: typeof import('../../../src/main/services/ChainService')['getChainService']