UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 2.19 kB
import{c as normalizeOptionalLowercaseString}from"../../string-coerce-CpTFcSwY.mjs";import{d as resolveProviderRequestHeaders}from"../../provider-request-config-BQ-HhEKu.mjs";import"../../string-coerce-runtime-BYDH9Quw.mjs";import{a as buildProviderReplayFamilyHooks}from"../../provider-model-shared-Cx--TZoK.mjs";import"../../provider-http-D0sVd8r_.mjs";import{n as readConfiguredProviderCatalogEntries}from"../../provider-catalog-shared-pOPyBmVF.mjs";import{t as defineSingleProviderPluginEntry}from"../../provider-entry-CTyJ4-xs.mjs";import{a as REQUESTY_DEFAULT_MODEL_REF,c as REQUESTY_PROVIDER_ID,f as openclaw_plugin_default,u as isRequestyAnthropicModel}from"../../provider-models-PgVGksMg.mjs";import{t as applyRequestyConfig}from"../../onboard-mWF6jyyA.mjs";import{t as REQUESTY_LIVE_MODEL_DISCOVERY}from"../../provider-catalog-COUBHi2R.mjs"; //!extensions/requesty/index.ts const REQUESTY_ATTRIBUTION_HEADERS={"HTTP-Referer":`https://openclaw.ai`,"X-Title":`OpenClaw`};var requesty_default=defineSingleProviderPluginEntry({id:REQUESTY_PROVIDER_ID,name:`Requesty Provider`,description:`Bundled Requesty provider plugin`,manifest:openclaw_plugin_default,provider:{label:`Requesty`,docsPath:`/providers/requesty`,manifestAuth:{defaultModel:REQUESTY_DEFAULT_MODEL_REF,applyConfig:applyRequestyConfig},catalog:{discoveryMode:`strict`,liveModelDiscovery:REQUESTY_LIVE_MODEL_DISCOVERY},augmentModelCatalog:({config:e})=>readConfiguredProviderCatalogEntries({config:e,providerId:REQUESTY_PROVIDER_ID}),...buildProviderReplayFamilyHooks({family:`passthrough-gemini`}),wrapStreamFn(e){if(normalizeOptionalLowercaseString(e.provider)!==`requesty`||!e.streamFn)return;const t=e.streamFn;const wrapped=(e,n,r)=>t(e,n,{...r,headers:resolveProviderRequestHeaders({provider:typeof e.provider===`string`?e.provider:REQUESTY_PROVIDER_ID,api:e.api,baseUrl:typeof e.baseUrl===`string`?e.baseUrl:void 0,capability:`llm`,transport:`stream`,callerHeaders:r?.headers,defaultHeaders:REQUESTY_ATTRIBUTION_HEADERS,precedence:`defaults-win`})});return Object.assign(wrapped,{preservesGenericCompatibility:true})},isCacheTtlEligible:e=>isRequestyAnthropicModel(e.modelId)}});export{requesty_default as default};