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.65 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{createAnthropic as i}from"@ai-sdk/anthropic";import{streamText as p}from"ai";var c=["claude-4-opus-20250514","claude-4-sonnet-20250514","claude-3-7-sonnet-20250219","claude-3-5-sonnet-latest","claude-3-5-sonnet-20241022","claude-3-5-sonnet-20240620","claude-3-5-haiku-latest","claude-3-5-haiku-20241022","claude-3-opus-latest","claude-3-opus-20240229","claude-3-sonnet-20240229","claude-3-haiku-20240307"],d=c.map(e=>({name:e,displayName:e})),h={name:"anthropic",displayName:"\u{1F7E3} Anthropic (Claude)",models:d},u=async(e,n)=>{try{let t=e.providerSettings,o=t?.apiKey||e.apiKey;if(!o)throw new Error("API key is required for Anthropic");let a=t?.baseURL||"https://api.anthropic.com",s=i({apiKey:o,baseURL:a}),r=p({model:s(e.model),prompt:n,temperature:e.temperature||.7,maxTokens:e.maxTokens||2048});return{textStream:r.textStream,fullResponse:r.text}}catch(t){throw new Error(`Error calling Anthropic streaming API: ${t instanceof Error?t.message:String(t)}`)}};export{d as a,h as b,u as c};
/* 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-4U2YKOTO.js.map