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) • 825 B
TypeScript
import { xai } from '@ai-sdk/xai';
import { LooseToStrict, ModelInfo, RawiCredentials, StreamingResponse } from '../shared/types.js';
import { ChatProvider, ExecGenerationOptions, ExecGenerationResult } from './types.js';
import 'ai';
type LooseXaiModelId = Parameters<typeof xai>[0];
type XaiModelId = LooseToStrict<LooseXaiModelId>;
declare const xaiModels: ModelInfo[];
declare const xaiProvider: {
name: "xai";
displayName: string;
models: ModelInfo[];
};
declare const streamWithXAI: (credentials: RawiCredentials, prompt: string) => Promise<StreamingResponse>;
declare const xaiChatProvider: ChatProvider;
declare const generateWithXAI: (options: ExecGenerationOptions) => Promise<ExecGenerationResult>;
export { type XaiModelId, generateWithXAI, streamWithXAI, xaiChatProvider, xaiModels, xaiProvider };