本户可用模型目录(OpenAI 形态 data[])
GET
/v1/models
const url = 'https://api.tansr.com/v1/models';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/models \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”目录
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。