"use strict";(self.webpackChunkelementary_public_docs=self.webpackChunkelementary_public_docs||[]).push([[56615],{15680:(e,t,n)=>{n.d(t,{xA:()=>d,yg:()=>u});var a=n(96540);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function g(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=a.createContext({}),p=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):g(g({},t),e)),n},d=function(e){var t=p(e.components);return a.createElement(o.Provider,{value:t},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),y=p(n),m=r,u=y["".concat(o,".").concat(m)]||y[m]||s[m]||l;return n?a.createElement(u,g(g({ref:t},d),{},{components:n})):a.createElement(u,g({ref:t},d))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,g=new Array(l);g[0]=m;var i={};for(var o in t)hasOwnProperty.call(t,o)&&(i[o]=t[o]);i.originalType=e,i[y]="string"==typeof e?e:r,g[1]=i;for(var p=2;p{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>g,default:()=>s,frontMatter:()=>l,metadata:()=>i,toc:()=>p});var a=n(58168),r=(n(96540),n(15680));const l={sidebar_position:1,title:"\u67e5\u8be2\u6a21\u578b\u5217\u8868"},g="\u67e5\u8be2\u6a21\u578b\u5217\u8868",i={unversionedId:"model-as-a-service/nova/chat/Models/GetModelList",id:"model-as-a-service/nova/chat/Models/GetModelList",title:"\u67e5\u8be2\u6a21\u578b\u5217\u8868",description:"\u63a5\u53e3\u63cf\u8ff0\uff08Description\uff09",source:"@site/docs/model-as-a-service/nova/chat/Models/GetModelList.md",sourceDirName:"model-as-a-service/nova/chat/Models",slug:"/model-as-a-service/nova/chat/Models/GetModelList",permalink:"/help/docs/model-as-a-service/nova/chat/Models/GetModelList",draft:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/model-as-a-service/nova/chat/Models/GetModelList.md",tags:[],version:"current",sidebarPosition:1,frontMatter:{sidebar_position:1,title:"\u67e5\u8be2\u6a21\u578b\u5217\u8868"},sidebar:"tutorialSidebar",previous:{title:"\u5982\u4f55\u4f7f\u7528\u3010\u77e5\u8bc6\u5e93\u6784\u5efa\u3011",permalink:"/help/docs/model-as-a-service/nova/chat/GetStarted/Guides/KnowledgeBases"},next:{title:"\u67e5\u8be2\u6a21\u578b\u8be6\u60c5",permalink:"/help/docs/model-as-a-service/nova/chat/Models/GetModelDetail"}},o={},p=[{value:"\u63a5\u53e3\u63cf\u8ff0\uff08Description\uff09",id:"\u63a5\u53e3\u63cf\u8ff0description",level:3},{value:"\u8bf7\u6c42\u5730\u5740\uff08Request URL\uff09",id:"\u8bf7\u6c42\u5730\u5740request-url",level:3},{value:"\u8bf7\u6c42\u5934\uff08Request Header\uff09",id:"\u8bf7\u6c42\u5934request-header",level:3},{value:"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09",id:"\u8bf7\u6c42\u793a\u4f8brequest-example",level:3},{value:"\u54cd\u5e94\uff08Response\uff09",id:"\u54cd\u5e94response",level:3},{value:"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09",id:"\u54cd\u5e94\u793a\u4f8bresponse-example",level:3},{value:"\u9519\u8bef\u4fe1\u606f",id:"\u9519\u8bef\u4fe1\u606f",level:3}],d={toc:p},y="wrapper";function s(e){let{components:t,...n}=e;return(0,r.yg)(y,(0,a.A)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("h1",{id:"\u67e5\u8be2\u6a21\u578b\u5217\u8868"},"\u67e5\u8be2\u6a21\u578b\u5217\u8868"),(0,r.yg)("h3",{id:"\u63a5\u53e3\u63cf\u8ff0description"},(0,r.yg)("strong",{parentName:"h3"},"\u63a5\u53e3\u63cf\u8ff0\uff08Description\uff09")),(0,r.yg)("p",null,"\u67e5\u8be2\u6a21\u578b\u6e05\u5355\uff08\u57fa\u6a21\u578b\u3001\u7528\u6237\u7684\u5fae\u8c03\u6a21\u578b\u3001\u4ee5\u53caEmbedding\u6a21\u578b\uff09\uff0c\u6a21\u578b\u4fe1\u606f\u53ef\u53c2\u8003",(0,r.yg)("a",{parentName:"p",href:"/help/docs/model-as-a-service/nova/model/llm/GeneralLLM"},"\u6a21\u578b\u6e05\u5355")),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u8bf7\u6c42\u5730\u5740request-url"},(0,r.yg)("strong",{parentName:"h3"},"\u8bf7\u6c42\u5730\u5740\uff08Request URL\uff09")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre"},"[GET] https://api.sensenova.cn/v1/llm/models\n")),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u8bf7\u6c42\u5934request-header"},(0,r.yg)("strong",{parentName:"h3"},"\u8bf7\u6c42\u5934\uff08Request Header\uff09")),(0,r.yg)("p",null,"\u65e0\u7279\u6b8aHeader\uff0c\u8bf7\u53c2\u8003",(0,r.yg)("a",{parentName:"p",href:"/help/docs/model-as-a-service/nova/overview/Authorization"},"\u63a5\u53e3\u9274\u6743")),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u8bf7\u6c42\u793a\u4f8brequest-example"},(0,r.yg)("strong",{parentName:"h3"},"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},'curl --request GET "https://api.sensenova.cn/v1/llm/models" \\\n -H "Authorization: Bearer $API_TOKEN" \\\n -H "Content-Type: application/json"\n')),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u54cd\u5e94response"},(0,r.yg)("strong",{parentName:"h3"},"\u54cd\u5e94\uff08Response\uff09")),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"data"),(0,r.yg)("td",{parentName:"tr",align:null},"object[]"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u5217\u8868")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"object"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5b9e\u4f53\u7c7b\u578b\uff0c\u679a\u4e3e\u503c\uff0c\u6b64\u5904\u8fd4\u56de\u503c\u4e3a ",(0,r.yg)("inlineCode",{parentName:"td"},"LIST"))))),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"data")," \u90e8\u5206\u53c2\u6570\u5982\u4e0b\uff1a")),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578bID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"object"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5b9e\u4f53\u7c7b\u578b\uff0c\u679a\u4e3e\u503c\uff0c\u6b64\u5904\u8fd4\u56de\u503c\u4e3a ",(0,r.yg)("inlineCode",{parentName:"td"},"MODEL"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"type"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u7c7b\u578b\uff0c\u679a\u4e3e\u503c ",(0,r.yg)("br",null)," - \u57fa\u6a21\u578b\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"BASE_MODEL")," ",(0,r.yg)("br",null)," - \u5fae\u8c03\u6a21\u578b\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"FINE_TUNED_MODEL"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"owned_by"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u5f52\u5c5e ",(0,r.yg)("br",null)," - \u5fae\u8c03\u6a21\u578b\uff1a\u8d26\u6237ID\uff08\u767b\u5f55\u201c\u7528\u6237\u63a7\u5236\u53f0-\u8d26\u53f7\u4e2d\u5fc3\u201d\u67e5\u770b\uff09")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"permission"),(0,r.yg)("td",{parentName:"tr",align:null},"object[]"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u6743\u9650")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"root"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5fae\u8c03\u6a21\u578b\u7684\u6839\u8282\u70b9\u6a21\u578bID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"parent"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5fae\u8c03\u6a21\u578b\u7684\u7236\u8282\u70b9\u6a21\u578bID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"created_at"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u521b\u5efa\u65f6\u95f4\uff0cISO 8601\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\uff0c\u7cbe\u786e\u5230\u7eb3\u79d2")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"updated_at"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6a21\u578b\u66f4\u65b0\u65f6\u95f4\uff0cISO 8601\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\uff0c\u7cbe\u786e\u5230\u7eb3\u79d2")))),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("inlineCode",{parentName:"li"},"permission")," \u90e8\u5206\u53c2\u6570\u5982\u4e0b\uff1a")),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6743\u9650ID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"object"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5b9e\u4f53\u7c7b\u578b\uff0c\u679a\u4e3e\u503c\uff0c\u6b64\u5904\u8fd4\u56de\u503c\u4e3a ",(0,r.yg)("inlineCode",{parentName:"td"},"MODEL_PERMISSION"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"created_at"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6743\u9650\u521b\u5efa\u65f6\u95f4\uff0cISO 8601\u6807\u51c6\u65f6\u95f4\u683c\u5f0f\uff0c\u7cbe\u786e\u5230\u7eb3\u79d2")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"allow_chat"),(0,r.yg)("td",{parentName:"tr",align:null},"boolean"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6b64\u6a21\u578b\u662f\u5426\u5141\u8bb8\u5bf9\u8bdd\u751f\u6210 ",(0,r.yg)("br",null)," \u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"true")," ",(0,r.yg)("br",null)," \u4e0d\u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"false"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"allow_fine_tuning"),(0,r.yg)("td",{parentName:"tr",align:null},"boolean"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6b64\u6a21\u578b\u662f\u5426\u5141\u8bb8\u5fae\u8c03 ",(0,r.yg)("br",null)," \u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"true")," ",(0,r.yg)("br",null)," \u4e0d\u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"false"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"allow_embedding"),(0,r.yg)("td",{parentName:"tr",align:null},"boolean"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6b64\u6a21\u578b\u662f\u5426\u5141\u8bb8Embeddings ",(0,r.yg)("br",null)," \u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"true")," ",(0,r.yg)("br",null)," \u4e0d\u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"false"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"allow_completion"),(0,r.yg)("td",{parentName:"tr",align:null},"boolean"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6b64\u6a21\u578b\u662f\u5426\u5141\u8bb8\u6587\u672c\u8865\u5168 ",(0,r.yg)("br",null)," \u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"true")," ",(0,r.yg)("br",null)," \u4e0d\u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"false"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"allow_character"),(0,r.yg)("td",{parentName:"tr",align:null},"boolean"),(0,r.yg)("td",{parentName:"tr",align:null},"\u6b64\u6a21\u578b\u662f\u5426\u5141\u8bb8\u62df\u4eba\u5bf9\u8bdd\u751f\u6210 ",(0,r.yg)("br",null)," \u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"true")," ",(0,r.yg)("br",null)," \u4e0d\u5141\u8bb8\uff1a",(0,r.yg)("inlineCode",{parentName:"td"},"false"))))),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u54cd\u5e94\u793a\u4f8bresponse-example"},(0,r.yg)("strong",{parentName:"h3"},"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09")),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-json"},'{\n "data": [\n {\n "id": "string", \n "object": "MODEL",\n "type": "string", \n "owned_by": "string", \n "permission": [\n {\n "id": "string", \n "object": "MODEL_PERMISSION",\n "created_at": "2023-06-28T17:23:01.243566533Z", \n "allow_fine_tuning": false \n }\n ],\n "root": "string", \n "parent": "string", \n "created_at": "2023-06-28T17:23:01.243566533Z", \n "updated_at": "2023-06-28T17:23:01.243566533Z"\n }\n ],\n "object": "LIST"\n}\n')),(0,r.yg)("br",null),(0,r.yg)("h3",{id:"\u9519\u8bef\u4fe1\u606f"},(0,r.yg)("strong",{parentName:"h3"},"\u9519\u8bef\u4fe1\u606f")),(0,r.yg)("p",null,"\u53c2\u8003",(0,r.yg)("a",{parentName:"p",href:"/help/docs/model-as-a-service/nova/overview/ErrorCode"},"\u9519\u8bef\u7801")))}s.isMDXComponent=!0}}]);