UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

19 lines 845 B
import type { LanguageModelV2 } from '@ai-sdk/provider-v5'; import { MastraModelGateway } from './base.js'; import type { ProviderConfig } from './base.js'; export declare class ModelsDevGateway extends MastraModelGateway { readonly id = "models.dev"; readonly name = "models.dev"; private providerConfigs; constructor(providerConfigs?: Record<string, ProviderConfig>); fetchProviders(): Promise<Record<string, ProviderConfig>>; buildUrl(routerId: string, envVars?: typeof process.env): string | undefined; getApiKey(modelId: string): Promise<string>; resolveLanguageModel({ modelId, providerId, apiKey, headers, }: { modelId: string; providerId: string; apiKey: string; headers?: Record<string, string>; }): Promise<LanguageModelV2>; } //# sourceMappingURL=models-dev.d.ts.map