UNPKG

@mastra/core

Version:

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

18 lines 812 B
import { MastraModelGateway } from './base.js'; import type { GatewayLanguageModel, 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<GatewayLanguageModel>; } //# sourceMappingURL=models-dev.d.ts.map