UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

24 lines (21 loc) 908 B
import { ImageModelV2 } from '@ai-sdk/provider'; import { OllamaImageModelId, OllamaImageSettings } from './ollama-image-settings.js'; import './ollama-chat-settings.js'; import './ollama-models-list.js'; type OllamaEmbeddingConfig = { baseURL: string; fetch?: typeof fetch; headers: () => Record<string, string | undefined>; provider: string; }; declare class OllamaImageModel implements ImageModelV2 { #private; readonly specificationVersion = "v2"; readonly modelId: OllamaImageModelId; get provider(): string; get maxImagesPerCall(): number; get supportsParallelCalls(): boolean; constructor(modelId: OllamaImageModelId, settings: OllamaImageSettings, config: OllamaEmbeddingConfig); doGenerate({ abortSignal, prompt, }: Parameters<ImageModelV2['doGenerate']>[0]): Promise<Awaited<ReturnType<ImageModelV2['doGenerate']>>>; } export { OllamaImageModel };