Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Jan 29, 2024
1 parent 3fce2fb commit 4d0fbee
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions plugins/core/src/lib/services/coreLLMService/coreLLMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ICoreLLMService,
} from '../types'
import { CoreBudgetManagerService } from '../coreBudgetManagerService/coreBudgetMangerService'
import { UserService } from '../userService/userService'
import { CoreUserService } from '../userService/coreUserService'
import { saveRequest } from 'shared/core'
import { findProviderKey, findProviderName } from './findProvider'
import { LLMCredential } from './types/providerTypes'
Expand All @@ -27,12 +27,12 @@ export class CoreLLMService implements ICoreLLMService {
protected credentials: LLMCredential[] = []
protected projectId: string
protected agentId: string
protected userService: UserService
protected userService: CoreUserService

constructor({ projectId, agentId }: ConstructorParams) {
this.projectId = projectId
this.agentId = agentId || ''
this.userService = new UserService({ projectId })
this.userService = new CoreUserService({ projectId })
}
async initialize() {
try {
Expand Down Expand Up @@ -185,11 +185,4 @@ export class CoreLLMService implements ICoreLLMService {
}
return credential
}

// getProvidersWithCredentials(): LLMProviders[] {
// const credentialsArray = this.credentials
// const credentials = credentialsArray.map(cred => cred.name) as any
// const providers = getProvidersWithUserKeys(credentials)
// return providers
// }
}

0 comments on commit 4d0fbee

Please sign in to comment.