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.78 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{createQwen as i}from"@ai-sdk-community/qwen";import{streamText as w}from"ai";var m=["qwen2.5-14b-instruct-1m","qwen2.5-72b-instruct","qwen2.5-32b-instruct","qwen2.5-14b-instruct","qwen2.5-7b-instruct","qwen2-57b-a14b-instruct","qwen2.5-7b-instruct-1m","qwen-max","qwen-max-latest","qwen-max-2025-01-25","qwen-plus","qwen-plus-latest","qwen-plus-2025-01-25","qwen-turbo","qwen-turbo-latest","qwen-turbo-2024-11-01","qwen-vl-max","qwen-vl-plus","qwen2.5-vl-72b-instruct","qwen2.5-vl-7b-instruct","qwen2.5-vl-3b-instruct"],p=m.map(e=>({name:e,displayName:e})),q={name:"qwen",displayName:"\u{1F7E1} Qwen (Alibaba Cloud)",models:p},u=async(e,r)=>{try{let t=e.providerSettings,n=t?.apiKey||e.apiKey;if(!n)throw new Error("API key is required for Qwen");let s=t?.baseURL||"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",a=i({apiKey:n,baseURL:s}),o=w({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 Qwen streaming API: ${t instanceof Error?t.message:String(t)}`)}};export{p as a,q 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-WUNLPX5A.js.map