Skip to content

Commit c064456

Browse files
committed
dead code, now
1 parent 54e7f59 commit c064456

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/services/ghost/utils/kilocode-utils.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,35 +43,3 @@ export const AUTOCOMPLETE_PROVIDER_MODELS = {
4343
bedrock: "mistral.codestral-2508-v1:0",
4444
} as const
4545
export type AutocompleteProviderKey = keyof typeof AUTOCOMPLETE_PROVIDER_MODELS
46-
47-
export const defaultProviderUsabilityChecker = async (
48-
provider: AutocompleteProviderKey,
49-
providerSettingsManager: ProviderSettingsManager,
50-
): Promise<boolean> => {
51-
if (provider === "kilocode") {
52-
try {
53-
const profiles = await providerSettingsManager.listConfig()
54-
const kilocodeProfile = profiles.find((p) => p.apiProvider === "kilocode")
55-
56-
if (!kilocodeProfile) {
57-
return false
58-
}
59-
60-
const profile = await providerSettingsManager.getProfile({ id: kilocodeProfile.id })
61-
const kilocodeToken = profile.kilocodeToken
62-
const kilocodeOrgId = profile.kilocodeOrganizationId
63-
64-
if (!kilocodeToken) {
65-
return false
66-
}
67-
68-
return await checkKilocodeBalance(kilocodeToken, kilocodeOrgId)
69-
} catch (error) {
70-
console.error("Error checking kilocode balance:", error)
71-
return false
72-
}
73-
}
74-
75-
// For all other providers, assume they are usable
76-
return true
77-
}

0 commit comments

Comments
 (0)