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 • 4.1 kB
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});/* 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. */
var _ollama = require('@ai-sdk-community/ollama');var _ai = require('ai');var b=["athene-v2","athene-v2:72b","aya-expanse","aya-expanse:8b","aya-expanse:32b","codegemma","codegemma:2b","codegemma:7b","codellama","codellama:7b","codellama:13b","codellama:34b","codellama:70b","codellama:code","codellama:python","command-r","command-r:35b","command-r-plus","command-r-plus:104b","command-r7b","command-r7b:7b","deepseek-coder-v2","deepseek-coder-v2:16b","deepseek-coder-v2:236b","deepseek-v3","deepseek-v3:671b","dolphin3","dolphin3:8b","exaone3.5","exaone3.5:2.4b","exaone3.5:7.8b","exaone3.5:32b","falcon2","falcon2:11b","falcon3","falcon3:1b","falcon3:3b","falcon3:7b","falcon3:10b","firefunction-v2","firefunction-v2:70b","gemma","gemma:2b","gemma:7b","gemma2","gemma2:2b","gemma2:9b","gemma2:27b","granite3-dense","granite3-dense:2b","granite3-dense:8b","granite3-guardian","granite3-guardian:2b","granite3-guardian:8b","granite3-moe","granite3-moe:1b","granite3-moe:3b","granite3.1-dense","granite3.1-dense:2b","granite3.1-dense:8b","granite3.1-moe","granite3.1-moe:1b","granite3.1-moe:3b","llama2","llama2:7b","llama2:13b","llama2:70b","llama3","llama3:8b","llama3:70b","llama3-chatqa","llama3-chatqa:8b","llama3-chatqa:70b","llama3-gradient","llama3-gradient:8b","llama3-gradient:70b","llama3.1","llama3.1:8b","llama3.1:70b","llama3.1:405b","llama3.2","llama3.2:1b","llama3.2:3b","llama3.2-vision","llama3.2-vision:11b","llama3.2-vision:90b","llama3.3","llama3.3:70b","llama-guard3","llama-guard3:1b","llama-guard3:8b","llava","llava:7b","llava:13b","llava:34b","llava-llama3","llava-llama3:8b","llava-phi3","llava-phi3:3.8b","marco-o1","marco-o1:7b","mistral","mistral:7b","mistral-large","mistral-large:123b","mistral-nemo","mistral-nemo:12b","mistral-small","mistral-small:22b","mixtral","mixtral:8x7b","mixtral:8x22b","moondream","moondream:1.8b","openhermes","openhermes:v2.5","nemotron","nemotron:70b","nemotron-mini","nemotron-mini:4b","olmo","olmo:7b","olmo:13b","opencoder","opencoder:1.5b","opencoder:8b","phi3","phi3:3.8b","phi3:14b","phi3.5","phi3.5:3.8b","phi4","phi4:14b","qwen","qwen:7b","qwen:14b","qwen:32b","qwen:72b","qwen:110b","qwen2","qwen2:0.5b","qwen2:1.5b","qwen2:7b","qwen2:72b","qwen2.5","qwen2.5:0.5b","qwen2.5:1.5b","qwen2.5:3b","qwen2.5:7b","qwen2.5:14b","qwen2.5:32b","qwen2.5:72b","qwen2.5-coder","qwen2.5-coder:0.5b","qwen2.5-coder:1.5b","qwen2.5-coder:3b","qwen2.5-coder:7b","qwen2.5-coder:14b","qwen2.5-coder:32b","qwq","qwq:32b","sailor2","sailor2:1b","sailor2:8b","sailor2:20b","shieldgemma","shieldgemma:2b","shieldgemma:9b","shieldgemma:27b","smallthinker","smallthinker:3b","smollm","smollm:135m","smollm:360m","smollm:1.7b","tinyllama","tinyllama:1.1b","tulu3","tulu3:8b","tulu3:70b"],t= exports.a =b.map(a=>({name:a,displayName:a})),d= exports.b ={name:"ollama",displayName:"\u{1F7E2} Ollama",models:t},c= exports.c =async(a,m)=>{try{let e={};a.providerSettings&&"baseURL"in a.providerSettings&&(e.baseURL=a.providerSettings.baseURL);let o=_ollama.createOllama.call(void 0, Object.keys(e).length>0?e:void 0),l=_ai.streamText.call(void 0, {model:o(a.model),prompt:m,temperature:a.temperature||.7,maxTokens:a.maxTokens||2048});return{textStream:l.textStream,fullResponse:l.text}}catch(e){throw new Error(`Error calling Ollama streaming API: ${e instanceof Error?e.message:String(e)}`)}};exports.a = t; exports.b = d; exports.c = 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-X4T4DLSS.cjs.map