| 1234567891011121314151617181920212223 |
- import { ApiConfiguration } from "../shared/api"
- export function checkExistKey(config: ApiConfiguration | undefined) {
- return config
- ? [
- config.apiKey,
- config.glamaApiKey,
- config.openRouterApiKey,
- config.awsRegion,
- config.vertexProjectId,
- config.openAiApiKey,
- config.ollamaModelId,
- config.lmStudioModelId,
- config.geminiApiKey,
- config.openAiNativeApiKey,
- config.deepSeekApiKey,
- config.mistralApiKey,
- config.vsCodeLmModelSelector,
- config.requestyApiKey,
- config.unboundApiKey,
- ].some((key) => key !== undefined)
- : false
- }
|