mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: remove claude-code provider references and fix unused imports
This commit is contained in:
parent
90754ad7d1
commit
fdeb8fd819
2 changed files with 2 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue