You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.4 KiB
1 lines
1.4 KiB
const a={1:"中国",2:"美国",3:"东亚",4:"东南亚",5:"南亚",6:"中东",7:"欧洲",8:"俄罗斯",9:"非洲",10:"南美",11:"北美",12:"大洋洲",13:"巴西",14:"印度"},o={1:"STT",2:"TTS",3:"MT",4:"AST",5:"文本LLM",6:"存储",7:"STS",8:"录音识别",9:"多媒体LLM",10:"MCP"},l={error:{label:"不可用",color:"#be123c",bg:"#ffe4e6"},warn:{label:"有隐患",color:"#b45309",bg:"#fef3c7"},ok:{label:"正常",color:"#047857",bg:"#d1fae5"},skip:{label:"已停用",color:"#64748b",bg:"#f1f5f9"}},s={credential:{label:"凭据已验证",hint:"已用真实凭据调通服务商接口"},reachable:{label:"仅连通性",hint:"地址可达,但未验证凭据是否有效"},none:{label:"未探测",hint:"暂无该服务商的探针,可用性未经验证"}};function i(r){const e=r.config_issues||[],n=e.filter(t=>t.startsWith("[致命] "));return n.length?n.map(t=>t.replace("[致命] ","")).join(";"):r.status==="error"?r.probe_msg||"巡检失败":e.length?e.join(";"):r.probe_kind==="none"?r.probe_msg||"未验证可用性":r.probe_msg||""}function f(r){if(!r)return"尚未执行";const e=Date.now()-r;return e<6e4?"刚刚":e<36e5?`${Math.floor(e/6e4)} 分钟前`:e<864e5?`${Math.floor(e/36e5)} 小时前`:new Date(r).toLocaleString("zh-CN",{hour12:!1})}function b(r){return(r||"").split(",").map(e=>Number(e.trim())).filter(e=>!Number.isNaN(e)&&e>0)}export{o as C,s as P,a as R,l as S,i as a,f as h,b as p};
|
|
|