UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

4 lines 1.45 kB
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ import{createCerebras as n}from"@ai-sdk/cerebras";import{streamText as m}from"ai";var p=["qwen-3-235b-a22b","qwen-3-32b","llama3.1-8b","llama-3.3-70b","deepseek-r1-distill-llama-70b","llama-4-scout-17b-16e-instruct"],b=p.map(e=>({name:e,displayName:e})),l={name:"cerebras",displayName:"\u{1F9E0} Cerebras",models:b},y=async(e,a)=>{try{let r=e.providerSettings,s=r?.apiKey||e.apiKey;if(!s)throw new Error("API key is required for Cerebras");let o=r?.baseURL||"https://api.cerebras.ai/v1",i=n({apiKey:s,baseURL:o}),t=m({model:i(e.model),prompt:a,temperature:e.temperature||.7,maxTokens:e.maxTokens||2048});return{textStream:t.textStream,fullResponse:t.text}}catch(r){throw new Error(`Error calling Cerebras streaming API: ${r instanceof Error?r.message:String(r)}`)}};export{p as a,b,l as c,y as d}; /* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 12 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into an intelligent development workspace. */ //# sourceMappingURL=chunk-252WMUR5.js.map