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 2.17 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{b,c as R}from"./chunk-YZOPIDTP.js";import{b as y,c as E}from"./chunk-WUNLPX5A.js";import{b as A,c as j}from"./chunk-OVWIJHCT.js";import{b as f,c as u}from"./chunk-XKCX7BHW.js";import{c as v,d as c}from"./chunk-252WMUR5.js";import{c as h,d as w}from"./chunk-2QKNTKVX.js";import{b as P,c as g}from"./chunk-THAGAVS3.js";import{b as x,c as l}from"./chunk-7RWWSPM4.js";import{c as k,d as C}from"./chunk-FBDLJZSG.js";import{b as S,c as W}from"./chunk-LAIF7VXD.js";import{b as m,c as n}from"./chunk-JD3A5OXF.js";import{b as p,c as d}from"./chunk-4U2YKOTO.js";var a={anthropic:p,azure:f,bedrock:m,cerebras:v,deepseek:h,google:P,mistral:k,ollama:S,openai:b,qwen:y,xai:A,lmstudio:x},$=r=>a[r],F=()=>Object.values(a),H=()=>Object.keys(a);var z=async(r,e)=>{switch(r.provider){case"google":return await g(r,e);case"ollama":return await W(r,e);case"anthropic":return await d(r,e);case"openai":return await R(r,e);case"xai":return await j(r,e);case"azure":return await u(r,e);case"bedrock":return await n(r,e);case"qwen":return await E(r,e);case"lmstudio":return await l(r,e);case"deepseek":return await w(r,e);case"mistral":return await C(r,e);case"cerebras":return await c(r,e);default:throw new Error(`Unsupported provider: ${r.provider}`)}},nr=async(r,e,o={})=>{try{let t=await z(r,e),i="";for await(let s of t.textStream)i+=s,o.onChunk&&o.onChunk(s);return o.onComplete&&o.onComplete(i),i}catch(t){throw o.onError&&o.onError(t instanceof Error?t:new Error(String(t))),t}};export{z as a,nr as b,a as c,$ as d,F as e,H as f}; /* 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-LDSHVY7O.js.map