mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 04:41:16 -05:00
20 lines
464 B
TypeScript
20 lines
464 B
TypeScript
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
|
|
].some((key) => key !== undefined)
|
|
: false;
|
|
}
|