fix: remove claude-code provider references and fix unused imports

This commit is contained in:
hannesrudolph 2025-07-24 01:28:27 -06:00
parent 90754ad7d1
commit fdeb8fd819
2 changed files with 2 additions and 8 deletions

View file

@ -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()

View file

@ -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")