MCPcopy Index your code
hub / github.com/MatterAIOrg/OrbCode / createLLMClient

Function createLLMClient

src/api/provider.ts:12–18  ·  view source on GitHub ↗
(options: AxonClientOptions)

Source from the content-addressed store, hash-verified

10 * AI SDK. Both implement `LLMClient`, so the agent loop is unaffected.
11 */
12export function createLLMClient(options: AxonClientOptions): LLMClient {
13 const model = getModel(options.modelId)
14 if (usesAiSdk(model)) {
15 return new AiSdkClient({ model })
16 }
17 return new AxonClient(options)
18}

Callers 2

constructorMethod · 0.85
setModelMethod · 0.85

Calls 2

getModelFunction · 0.85
usesAiSdkFunction · 0.85

Tested by

no test coverage detected