MCPcopy Create free account
hub / github.com/apache/maka / runtimeAdapterOverride

Function runtimeAdapterOverride

packages/runtime/src/model-runtime.ts:184–197  ·  view source on GitHub ↗
(packageName: string)

Source from the content-addressed store, hash-verified

182}
183
184function runtimeAdapterOverride(packageName: string): ProviderRuntimeAdapter {
185 switch (packageName) {
186 case '@ai-sdk/anthropic':
187 return { kind: 'anthropic', auth: 'api-key', normalizeBaseUrl: true };
188 case '@ai-sdk/google':
189 return { kind: 'google', normalizeBaseUrl: false };
190 case '@ai-sdk/openai':
191 return { kind: 'openai' };
192 case '@ai-sdk/openai-compatible':
193 return { kind: 'openai-compatible', name: 'provider' };
194 default:
195 throw new Error(`models.dev model runtime package ${packageName} is unsupported`);
196 }
197}

Callers 1

resolveModelRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected