UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 911 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{li as t,oi as n}from"./_4____________________________.js";import{Nr as r,Pr as i,vc as a,yc as o}from"./_2_____________________________.js";function s(e){let t=e.trim().toLowerCase();return u.get(t)??`${t.charAt(0).toUpperCase()}${t.slice(1)}`}function c(e,n,r=t){let a=i(e,n);return a?{label:r(`chat.modelControls.routes.${a}.label`),detail:r(`chat.modelControls.routes.${a}.detail`)}:n?{label:s(n)}:void 0}function l(e){if(!e)return;let n={runtime:e.label};return{label:t(`chat.modelControls.completionRoutes.${e.kind}.label`,n),detail:t(`chat.modelControls.completionRoutes.${e.kind}.detail`,n)}}var u;function d(){return(d=e((()=>{r(),n(),a(),o(),u=new Map([[`agentsapi`,`Agents API`],[`claude-cli`,`Claude CLI`],[`codex`,`Codex`],[`codex-cli`,`Codex`],[`google-gemini-cli`,`Gemini CLI`],[`openclaw`,`OpenClaw`]])})))()}export{c as n,d as r,l as t};