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
20 lines (17 loc) • 1.02 kB
text/typescript
import { cerebras } from '@ai-sdk/cerebras';
import { LooseToStrict, ModelInfo, RawiCredentials, StreamingResponse } from '../shared/types.cjs';
import { ChatProvider, ExecGenerationOptions, ExecGenerationResult } from './types.cjs';
import 'ai';
type LooseCerebrasModelId = Parameters<typeof cerebras>[0];
type CerebrasModelId = LooseToStrict<LooseCerebrasModelId>;
declare const cerebrasModelIds: readonly ["llama3.1-8b", "llama3.1-70b", "llama3.3-70b"];
declare const cerebrasModels: ModelInfo[];
declare const cerebrasProvider: {
name: "cerebras";
displayName: string;
models: ModelInfo[];
};
declare const streamWithCerebras: (credentials: RawiCredentials, prompt: string) => Promise<StreamingResponse>;
declare const cerebrasChatProvider: ChatProvider;
declare const generateWithCerebras: (options: ExecGenerationOptions) => Promise<ExecGenerationResult>;
export { type CerebrasModelId, cerebrasChatProvider, cerebrasModelIds, cerebrasModels, cerebrasProvider, generateWithCerebras, streamWithCerebras };