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.52 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 t}from"./chunk-EQ3TMTCU.js";import{createJsonResponseHandler as l,postJsonToApi as m}from"@ai-sdk/provider-utils";import{z as e}from"zod";var r=class{#e;#a;specificationVersion="v2";modelId;get provider(){return this.#e.provider}get maxImagesPerCall(){return this.#a.maxImagesPerCall??2048}get supportsParallelCalls(){return!1}constructor(a,s,o){this.modelId=a,this.#a=s,this.#e=o}async doGenerate({abortSignal:a,prompt:s}){let{responseHeaders:o,value:n}=await m({abortSignal:a,body:{prompt:s,model:this.modelId},failedResponseHandler:t,fetch:this.#e.fetch,headers:this.#e.headers(),successfulResponseHandler:l(i),url:`${this.#e.baseURL}/generate`});return{images:n.images||[],warnings:[],response:{timestamp:new Date,modelId:this.modelId,headers:o}}}},i=e.object({images:e.array(e.string()).optional(),prompt_eval_count:e.number().nullable()});export{r as a};
/* 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-7GH5WHNV.js.map