用户模型池只读查询:账户创建时原子快照,GET不补种;缺档为空。selected保留顺序及失效引用,inherited:false,initialization说明来源,unavailable说明原因。impactCatalogId可按需查询一个已存引用在本scope的影响。
const url = 'https://api.tansr.com/v1/model-selection';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.tansr.com/v1/model-selection \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Org 作用域声明(org 公开 id);服务端校验成员资格与角色,非成员恒 404、角色不够 403
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”选择集与可添加全集
object
创建时初始化的私有模型池;GET不写入。已有档案(含空数组与失效引用)原样回读,实际消费仍受当前许可链约束。
恒false;缺少初始化档案时为空集,查询不创建配置或恢复动态继承。
当前选择状态的不可解读内容指纹;管理写入以 expectedRevision 防止旧页面覆盖新选择,并非递增序号。
object
可添加全集 = 本 owner 视角下可服务的 platform 目录(自定义端点/BYOK 不在册、不受选择集约束)
object
目录 public id(选择集引用键)
CLI 侧模型引用名(tansr/
模型形态(三级过滤:类别;available 与 bundle 可服务性谓词同源,现恒 chat)
模型族(三级过滤:厂商;model_catalog.family 结构化列)
Profile 标签(三级过滤:标签;无 Profile 回 [])
object
Exact nonnegative sale unit rate; up to 12 integer and 30 effective fractional digits. Wallets and settled amounts remain Money6 (at most 6 fractional digits).
Exact nonnegative sale unit rate; up to 12 integer and 30 effective fractional digits. Wallets and settled amounts remain Money6 (at most 6 fractional digits).
Exact nonnegative sale unit rate; up to 12 integer and 30 effective fractional digits. Wallets and settled amounts remain Money6 (at most 6 fractional digits).
Exact nonnegative sale unit rate; up to 12 integer and 30 effective fractional digits. Wallets and settled amounts remain Money6 (at most 6 fractional digits).
Example
{ "initialization": { "version": 1, "source": "starter" }, "unavailable": [ { "reason": "catalog_missing" } ], "available": [ { "freeUsage": { "status": "disabled" } } ]}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。