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) 975 B
import { EmbeddingModelV2 } from '@ai-sdk/provider'; import { OllamaEmbeddingModelId, OllamaEmbeddingSettings } from './ollama-embedding-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 OllamaEmbeddingModel implements EmbeddingModelV2<string> { #private; readonly specificationVersion = "v2"; readonly modelId: OllamaEmbeddingModelId; get provider(): string; get maxEmbeddingsPerCall(): number; get supportsParallelCalls(): boolean; constructor(modelId: OllamaEmbeddingModelId, settings: OllamaEmbeddingSettings, config: OllamaEmbeddingConfig); doEmbed({ abortSignal, values, }: Parameters<EmbeddingModelV2<string>['doEmbed']>[0]): Promise<Awaited<ReturnType<EmbeddingModelV2<string>['doEmbed']>>>; } export { OllamaEmbeddingModel };