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) • 911 B
text/typescript
import { ImageModelV2 } from '@ai-sdk/provider';
import { OllamaImageModelId, OllamaImageSettings } from './ollama-image-settings.cjs';
import './ollama-chat-settings.cjs';
import './ollama-models-list.cjs';
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 };