MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / getAvailableCloudModels

Function getAvailableCloudModels

src/lib/cloudModels.ts:38–48  ·  view source on GitHub ↗
(
  openRouterKey: string | null,
  claudeKey: string | null,
  openAiKey: string | null
)

Source from the content-addressed store, hash-verified

36];
37
38export function getAvailableCloudModels(
39 openRouterKey: string | null,
40 claudeKey: string | null,
41 openAiKey: string | null
42): CloudModel[] {
43 const models: CloudModel[] = [];
44 if (openRouterKey) models.push(...OPENROUTER_MODELS);
45 if (claudeKey) models.push(...CLAUDE_MODELS);
46 if (openAiKey) models.push(...OPENAI_MODELS);
47 return models;
48}
49
50export function isCloudModel(modelId: string): CloudProvider | null {
51 for (const m of OPENROUTER_MODELS) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected