获取供应商下的模型
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取供应商下的模型</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/appsquare/orch/api/v1/llm/provider/models</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<pre><code>{
&quot;scope&quot;:&quot;TENANT&quot;,
&quot;appId&quot;:&quot;123123123&quot;,//scope为APP时传入
&quot;providerName&quot;:&quot;spark&quot;//供应商名称
}</code></pre>
<h5>返回示例</h5>
<pre><code> {
&quot;success&quot;: true,
&quot;code&quot;: &quot;1&quot;,
&quot;message&quot;: &quot;处理成功&quot;,
&quot;traceId&quot;: &quot;&quot;,
&quot;data&quot;: [
{
&quot;modelSchemaId&quot;: 1010,//模型id
&quot;providerName&quot;: &quot;spark&quot;,//供应商名称
&quot;modelName&quot;: &quot;4.0Ultra&quot;,//模型名称
&quot;label&quot;: &quot;Spark 4.0Ultra&quot;,//模型标题
&quot;modelType&quot;: &quot;llm&quot;,//模型类型
&quot;features&quot;: [
&quot;multiToolCall&quot;,
&quot;agentThought&quot;,
&quot;streamToolCall&quot;
],
&quot;modelProperties&quot;: {//模型属性
&quot;mode&quot;: &quot;chat&quot;,
&quot;contextSize&quot;: 100000
},
&quot;parameterRules&quot;: [//参数规则
{
&quot;name&quot;: &quot;temperature&quot;,
&quot;useTemplate&quot;: &quot;temperature&quot;,
&quot;label&quot;: &quot;温度&quot;,
&quot;type&quot;: &quot;float&quot;,
&quot;help&quot;: &quot;核采样阈值。用于决定结果随机性,取值越高随机性越强即相同的问题得到的不同答案的可能性越高&quot;,
&quot;required&quot;: null,
&quot;defaultVal&quot;: null,
&quot;min&quot;: 0.0,
&quot;max&quot;: 2.0,
&quot;precision&quot;: null,
&quot;options&quot;: null
},
{
&quot;name&quot;: &quot;max_tokens&quot;,
&quot;useTemplate&quot;: &quot;max_tokens&quot;,
&quot;label&quot;: &quot;最大标记&quot;,
&quot;type&quot;: &quot;int&quot;,
&quot;help&quot;: &quot;模型回答的tokens的最大长度&quot;,
&quot;required&quot;: null,
&quot;defaultVal&quot;: null,
&quot;min&quot;: 1.0,
&quot;max&quot;: 8192.0,
&quot;precision&quot;: null,
&quot;options&quot;: null
},
{
&quot;name&quot;: &quot;top_k&quot;,
&quot;useTemplate&quot;: null,
&quot;label&quot;: &quot;取样数量&quot;,
&quot;type&quot;: &quot;int&quot;,
&quot;help&quot;: &quot;从k个候选中随机选择一个(非等概率)&quot;,
&quot;required&quot;: null,
&quot;defaultVal&quot;: null,
&quot;min&quot;: 1.0,
&quot;max&quot;: 6.0,
&quot;precision&quot;: null,
&quot;options&quot;: null
}
],
&quot;deprecated&quot;: false,
&quot;version&quot;: &quot;0.0.1&quot;
}
]
}</code></pre>