rawi
Version:
Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 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.44 kB
JavaScript
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 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{a as r}from"./chunk-7GH5WHNV.js";import{a as n}from"./chunk-LJSOQ4E6.js";import{a as g}from"./chunk-77KIPQ6F.js";import{withoutTrailingSlash as h}from"@ai-sdk/provider-utils";function O(l={}){let d=h(l.baseURL)??"http://127.0.0.1:11434/api",m=()=>({...l.headers}),o=(a,t={})=>new n(a,t,{baseURL:d,fetch:l.fetch,headers:m,provider:"ollama.chat"}),s=(a,t={})=>new r(a,t,{baseURL:d,fetch:l.fetch,headers:m,provider:"ollama.image"}),i=(a,t={})=>new g(a,t,{baseURL:d,fetch:l.fetch,headers:m,provider:"ollama.embedding"}),e=function(a,t){if(new.target)throw new Error("The Ollama model function cannot be called with the new keyword.");return o(a,t)};return e.chat=o,e.embedding=i,e.languageModel=o,e.textEmbedding=i,e.textEmbeddingModel=i,e.imageModel=s,e}var f=O();export{O as a,f as b};
/* Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 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-3HQ5HKAI.js.map