diff --git a/packages/cloud/src/CloudService.ts b/packages/cloud/src/CloudService.ts index 886f8f8c3f..34bcf5e496 100644 --- a/packages/cloud/src/CloudService.ts +++ b/packages/cloud/src/CloudService.ts @@ -7,8 +7,7 @@ import { CloudServiceCallbacks } from "./types" import type { AuthService } from "./auth" import { WebAuthService, StaticTokenAuthService } from "./auth" import type { SettingsService } from "./SettingsService" -import { CloudSettingsService } from "./CloudSettingsService" -import { StaticSettingsService } from "./StaticSettingsService" +import { SettingsService as SettingsServiceImpl } from "./SettingsService" import { TelemetryClient } from "./TelemetryClient" import { ShareService } from "./ShareService" @@ -55,7 +54,7 @@ export class CloudService { this.authService.on("logged-out", this.authListener) this.authService.on("user-info", this.authListener) - this.settingsService = new SettingsService(this.context, this.authService, () => + this.settingsService = new SettingsServiceImpl(this.context, this.authService!, () => this.callbacks.stateChanged?.(), ) this.settingsService.initialize() diff --git a/packages/types/src/__tests__/provider-settings.test.ts b/packages/types/src/__tests__/provider-settings.test.ts index 8277320289..1d76113631 100644 --- a/packages/types/src/__tests__/provider-settings.test.ts +++ b/packages/types/src/__tests__/provider-settings.test.ts @@ -8,11 +8,6 @@ describe("getApiProtocol", () => { expect(getApiProtocol("anthropic", "gpt-4")).toBe("anthropic") }) - it("should return 'anthropic' for claude-code provider", () => { - expect(getApiProtocol("claude-code")).toBe("anthropic") - expect(getApiProtocol("claude-code", "some-model")).toBe("anthropic") - }) - it("should return 'anthropic' for bedrock provider", () => { expect(getApiProtocol("bedrock")).toBe("anthropic") expect(getApiProtocol("bedrock", "gpt-4")).toBe("anthropic")