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 { deepseek } from '@ai-sdk/deepseek';
import { LooseToStrict, ModelInfo, RawiCredentials, StreamingResponse } from '../shared/types.cjs';
import { ChatProvider, ExecGenerationOptions, ExecGenerationResult } from './types.cjs';
import 'ai';
type LooseDeepSeekModelId = Parameters<typeof deepseek>[0];
type DeepSeekModelId = LooseToStrict<LooseDeepSeekModelId>;
declare const deepSeekModelIds: readonly ["deepseek-chat", "deepseek-reasoner"];
declare const deepSeekModels: ModelInfo[];
declare const deepSeekProvider: {
name: "deepseek";
displayName: string;
models: ModelInfo[];
};
declare const streamWithDeepSeek: (credentials: RawiCredentials, prompt: string) => Promise<StreamingResponse>;
declare const deepseekChatProvider: ChatProvider;
declare const generateWithDeepSeek: (options: ExecGenerationOptions) => Promise<ExecGenerationResult>;
export { type DeepSeekModelId, deepSeekModelIds, deepSeekModels, deepSeekProvider, deepseekChatProvider, generateWithDeepSeek, streamWithDeepSeek };