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.51 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{createMistral as l}from"@ai-sdk/mistral";import{streamText as m}from"ai";var n=["ministral-3b-latest","ministral-8b-latest","mistral-large-latest","mistral-small-latest","pixtral-large-latest","pixtral-12b-2409","open-mistral-7b","open-mixtral-8x7b","open-mixtral-8x22b"],p=n.map(t=>({name:t,displayName:t})),M={name:"mistral",displayName:"\u{1F7E0} Mistral AI",models:p},c=async(t,a)=>{try{let e=t.providerSettings,r=e?.apiKey||t.apiKey;if(!r)throw new Error("API key is required for Mistral");let o=e?.baseURL||"https://api.mistral.ai/v1",i=l({apiKey:r,baseURL:o}),s=m({model:i(t.model),prompt:a,temperature:t.temperature||.7,maxTokens:t.maxTokens||2048});return{textStream:s.textStream,fullResponse:s.text}}catch(e){throw new Error(`Error calling Mistral streaming API: ${e instanceof Error?e.message:String(e)}`)}};export{n as a,p as b,M as c,c 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-FBDLJZSG.js.map