MCPcopy
hub / github.com/continuedev/continue / createLlmApi

Function createLlmApi

extensions/cli/src/config.ts:44–58  ·  view source on GitHub ↗
(
  model: ModelConfig,
  _authConfig: AuthConfig,
)

Source from the content-addressed store, hash-verified

42 * Creates an LLM API instance from a ModelConfig and auth configuration
43 */
44export function createLlmApi(
45 model: ModelConfig,
46 _authConfig: AuthConfig,
47): BaseLlmApi | null {
48 const config: LLMConfig = {
49 provider: model.provider as any,
50 model: model.model,
51 apiKey: model.apiKey,
52 apiBase: model.apiBase,
53 requestOptions: model.requestOptions,
54 env: model.env,
55 };
56
57 return constructLlmApi(config) ?? null;
58}
59
60export function getLlmApi(
61 assistant: AssistantUnrolled,

Callers 4

getLlmApiFunction · 0.85
doInitializeMethod · 0.85
switchModelMethod · 0.85
getSubagentModelsMethod · 0.85

Calls 1

constructLlmApiFunction · 0.90

Tested by

no test coverage detected