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.36 kB
JavaScript
/* 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{createDeepSeek as n}from"@ai-sdk/deepseek";import{streamText as i}from"ai";var d=["deepseek-chat","deepseek-reasoner"],m=d.map(e=>({name:e,displayName:e})),c={name:"deepseek",displayName:"\u{1F535} DeepSeek",models:m},y=async(e,r)=>{try{let t=e.providerSettings,s=t?.apiKey||e.apiKey;if(!e.apiKey)throw new Error("API key is required for DeepSeek");let p=t?.baseURL||"https://api.deepseek.com/v1",a=n({apiKey:s,baseURL:p}),o=i({model:a(e.model),prompt:r,temperature:e.temperature||.7,maxTokens:e.maxTokens||2048});return{textStream:o.textStream,fullResponse:o.text}}catch(t){throw new Error(`Error calling DeepSeek streaming API: ${t instanceof Error?t.message:String(t)}`)}};export{d as a,m as b,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-2QKNTKVX.js.map