UNPKG

ai-sdk-ollama

Version:

Vercel AI SDK Provider for Ollama using official ollama-js library

10 lines 536 B
import { LanguageModelV4FinishReason } from '@ai-sdk/provider'; /** * Maps Ollama finish reasons to the AI SDK V3 LanguageModelV4FinishReason format. * * In V3, FinishReason is an object with: * - unified: standardized reason ('stop', 'length', 'content-filter', 'tool-calls', 'error', 'other') * - raw: the original reason string from the provider */ export declare function mapOllamaFinishReason(reason?: string | null, hasToolCalls?: boolean): LanguageModelV4FinishReason; //# sourceMappingURL=map-ollama-finish-reason.d.ts.map