PageSourceSearch

https://opencompass.org.cn/assets/index-631bc076.js

js opencompass.org.cn collected 2026-10-03 19:32:32 UTC 3,796 bytes, 1 lines download raw bytes

1import{a as s,j as e,G as a,K as n,R as i,L as l,N as r,S as o,x as t,A as c}from"./index-a3f0a167.js";import{r as d}from"./vendor-react-e7bcfd17.js";import{y as _}from"./vendor-icons-192154a0.js";import{M as m}from"./index-ff6d43a0.js";import"./vendor-antd-383e9751.js";import"./vendor-katex-839e4e9a.js";const v="_container_700pg_1",k="_rank_700pg_6",p="_title_700pg_10",h="_desc_700pg_20",g="_content_700pg_30",x="_tableBox_700pg_35",j="_overall-rank_7qr26_1",u="_rank-header_7qr26_1",N="_rank-title_7qr26_15",f="_leftHeader_7qr26_19",y="_rank-img_7qr26_24",L="_rightHeader_7qr26_52",C="_rank-footer_7qr26_62",T="_enRankHeader_7qr26_102",M="_rank-item_yi1l6_1",b="_ranking_yi1l6_13",E="_rank-img_yi1l6_17",S="_rank-content_yi1l6_74",R="_rank-flex_yi1l6_77",q="_rank-name_yi1l6_83",H="_org-name_yi1l6_95",A="_rank-point_yi1l6_107",G="_opensource_yi1l6_115",O=a=>{var n;const{model:i,score:l,ranking:r,openSource:o,org:t}=a,c=null==(n=s("bigCompass"))?void 0:n.bigCompassHome,d=["/assets/one-346a4e0e.svg","/assets/two-ff94a387.svg","/assets/three-61408f71.svg","/assets/four-8ef089b7.svg","/assets/five-a6c7d47e.svg"];return c?e.jsxs("div",{className:M,children:[e.jsx("div",{className:b,children:e.jsx("img",{className:E,src:d[r-1],alt:"rank"})}),e.jsxs("div",{className:S,children:[e.jsxs("div",{className:R,children:[e.jsx("div",{title:i,className:q,children:i}),e.jsx("div",{className:A,children:l})]}),e.jsxs("div",{className:R,children:[e.jsx("div",{className:H,title:t,children:t}),e.jsx("div",{className:G,children:o?null==c?void 0:c.openSource:null==c?void 0:c.closeSource})]})]})]}):null},w="_rank-list_gpi64_1",z="_module-title_gpi64_5",I=s=>{const{rankList:a,title:n}=s;return e.jsxs("div",{className:w,children:[n&&e.jsx("div",{className:z,children:n}),a.slice(0,10).map(s=>e.jsx(O,{...s},s.model))]})},$=n=>{var i;const{title:l,rankList:r,moreGuide:o,icon:t,link:c}=n,m=null==(i=s("bigCompass"))?void 0:i.bigCompassHome,{locale:v}=d.useContext(a);return e.jsxs("div",{className:_(j),children:[e.jsxs("div",{className:_(u,"zh-CN"!==v&&T),children:[e.jsxs("div",{className:f,children:[e.jsx("img",{className:y,src:t,alt:"rank"}),e.jsx("div",{className:N,children:l})]}),e.jsx("span",{className:L,children:null==m?void 0:m.score})]}),e.jsx(I,{rankList:r,title:""}),e.jsx("a",{className:C,onClick:s=>{window.location.href=`${c}?lang=${v}`},children:e.jsx("span",{children:`${o} →`})})]})},U="/assets/mm-rank-246255cd.svg",B=()=>{var a;const _=null==(a=s("bigCompass"))?void 0:a.bigCompassHome,[j,u]=d.useState([]),[N,f]=d.useState([]),[y,L]=d.useState([]);d.useEffect(()=>{n({rankingType:i.LLM,benchmarkType:l.CLOSE_SOURCE}).then(s=>{r({rankingType:i.LLM,month:(null==s?void 0:s[0].month)||"REALTIME",evalType:0,benchmarkType:l.CLOSE_SOURCE}).then(s=>{u(s.modelRankings.slice(0,5))})}),n({rankingType:i.MM,specializedType:o.official}).then(s=>{r({rankingType:i.MM,month:(null==s?void 0:s[0].month)||"REALTIME",evalType:0,specializedType:o.official}).then(s=>{f(s.modelRankings.slice(0,5))})}),t({rankingType:0,month:"REALTIME"}).then(s=>{L(s.modelRankings.slice(0,5))})},[]);const C=d.useMemo(()=>[U,U,"/assets/discovery-icon-f0d4b16a.svg"],[]),T=d.useMemo(()=>{var s;return null==(s=null==_?void 0:_.ranks)?void 0:s.map((s,e)=>0===e?{...s,icon:C[e],rankList:j}:1===e?{...s,icon:C[e],rankList:N}:{...s,icon:C[e],rankList:y})},[null==_?void 0:_.ranks,j,N,y,C]);return _&&j&&N&&y?e.jsxs(m,{containerClassName:v,contentClassName:k,children:[e.jsxs(c,{children:[e.jsx("div",{className:p,children:_.rank}),e.jsx("div",{className:h,children:_.rankDesc})]}),e.jsx(c,{className:g,children:null==T?void 0:T.map(s=>e.jsx("div",{className:x,children:e.jsx($,{title:s.title,rankList:s.rankList,moreGuide:s.moreGuide,icon:s.icon,link:s.link})}))})]}):e.jsx(e.Fragment,{})};export{B as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.