File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -43,35 +43,3 @@ export const AUTOCOMPLETE_PROVIDER_MODELS = {
4343 bedrock : "mistral.codestral-2508-v1:0" ,
4444} as const
4545export 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- }
You can’t perform that action at this time.
0 commit comments