diff --git a/ui/ModelModal/src/assets/fonts/iconfont.js b/ui/ModelModal/src/assets/fonts/iconfont.js index 43c24ad..fcac71d 100644 --- a/ui/ModelModal/src/assets/fonts/iconfont.js +++ b/ui/ModelModal/src/assets/fonts/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_5004288='',(a=>{var l=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var h,t,i,p,z,o=function(l,c){c.parentNode.insertBefore(l,c)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,c=document.createElement("div");c.innerHTML=a._iconfont_svg_string_5004288,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(l=document.body).firstChild?o(c,l.firstChild):l.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(i=h,p=a.document,z=!1,m(),p.onreadystatechange=function(){"complete"==p.readyState&&(p.onreadystatechange=null,d())})}function d(){z||(z=!0,i())}function m(){try{p.documentElement.doScroll("left")}catch(l){return void setTimeout(m,50)}d()}})(window); \ No newline at end of file +window._iconfont_svg_string_5004288='',(a=>{var l=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var h,t,i,p,z,v=function(l,c){c.parentNode.insertBefore(l,c)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,c=document.createElement("div");c.innerHTML=a._iconfont_svg_string_5004288,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(l=document.body).firstChild?v(c,l.firstChild):l.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(i=h,p=a.document,z=!1,m(),p.onreadystatechange=function(){"complete"==p.readyState&&(p.onreadystatechange=null,d())})}function d(){z||(z=!0,i())}function m(){try{p.documentElement.doScroll("left")}catch(l){return void setTimeout(m,50)}d()}})(window); \ No newline at end of file diff --git a/ui/ModelModal/src/constants/providers.ts b/ui/ModelModal/src/constants/providers.ts index 48e83e3..bbede9c 100644 --- a/ui/ModelModal/src/constants/providers.ts +++ b/ui/ModelModal/src/constants/providers.ts @@ -95,7 +95,7 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = { OpenAI: { label: 'OpenAI', cn: 'OpenAI', - icon: 'ikun-chatgpt', + icon: 'ikun-chatgpt-copy', urlWrite: false, secretRequired: true, customHeader: false, @@ -237,6 +237,21 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = { // modelDocumentUrl: 'https://github.com/settings/tokens', // defaultBaseUrl: 'https://models.github.ai/catalog', // }, + Xinference: { + label: 'Xinference', + cn: 'Xinference', + icon: 'ikun-Xinference', + urlWrite: true, + secretRequired: false, + customHeader: false, + chat: true, + code: true, + embedding: true, + rerank:true, + analysis: true, + modelDocumentUrl: 'https://inference.readthedocs.io/zh-cn/v1.2.0/getting_started/installation.html#installation', + defaultBaseUrl: 'http://172.17.0.1:9997', + }, Yi: { label: 'Yi', cn: '零一万物', @@ -312,7 +327,7 @@ export const DEFAULT_MODEL_PROVIDERS: ModelProviderMap = { // modelDocumentUrl: '', // defaultBaseUrl: 'https://api.jina.ai/v1', // }, - + CTYun: { label: 'CTYun', cn: '天翼云息壤',