"use strict";(self.webpackChunk_postman_app_scratchpad=self.webpackChunk_postman_app_scratchpad||[]).push([[39],{7373:function(e,r,a){a.r(r),a.d(r,{VERSION:function(){return i},cerebras:function(){return u},createCerebras:function(){return d}});var t=a(7374),o=a(7255),n=a(7256),s=a(7259),i="1.0.25",c={errorSchema:s.z.object({message:s.z.string(),type:s.z.string(),param:s.z.string(),code:s.z.string()}),errorToMessage:e=>e.message};function d(e={}){var r;const a=(0,n.withoutTrailingSlash)(null!=(r=e.baseURL)?r:"https://api.cerebras.ai/v1"),s=()=>(0,n.withUserAgentSuffix)({Authorization:`Bearer ${(0,n.loadApiKey)({apiKey:e.apiKey,environmentVariableName:"CEREBRAS_API_KEY",description:"Cerebras API key"})}`,...e.headers},`ai-sdk/cerebras/${i}`),d=r=>new t.OpenAICompatibleChatLanguageModel(r,{provider:"cerebras.chat",url:({path:e})=>`${a}${e}`,headers:s,fetch:e.fetch,errorStructure:c,supportsStructuredOutputs:!0}),u=e=>d(e);return u.languageModel=d,u.chat=d,u.textEmbeddingModel=e=>{throw new o.NoSuchModelError({modelId:e,modelType:"textEmbeddingModel"})},u.imageModel=e=>{throw new o.NoSuchModelError({modelId:e,modelType:"imageModel"})},u}var u=d()}}]);