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
19 lines (16 loc) • 881 B
text/typescript
import { google } from '@ai-sdk/google';
import { LooseToStrict, ModelInfo, RawiCredentials, StreamingResponse } from '../shared/types.cjs';
import { ChatProvider, ExecGenerationOptions, ExecGenerationResult } from './types.cjs';
import 'ai';
type LooseGoogleModelId = Parameters<typeof google>[0];
type GoogleModelId = LooseToStrict<LooseGoogleModelId>;
declare const googleModels: ModelInfo[];
declare const googleProvider: {
name: "google";
displayName: string;
models: ModelInfo[];
};
declare const streamWithGoogle: (credentials: RawiCredentials, prompt: string) => Promise<StreamingResponse>;
declare const googleChatProvider: ChatProvider;
declare const generateWithGoogle: (options: ExecGenerationOptions) => Promise<ExecGenerationResult>;
export { type GoogleModelId, generateWithGoogle, googleChatProvider, googleModels, googleProvider, streamWithGoogle };