File size: 307 Bytes
3206347 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
export default {
name: 'List models',
key: 'listModels',
async run($) {
const response = await $.http.get('/v1/models');
const models = response.data.data.map((model) => {
return {
value: model.id,
name: model.id,
};
});
return { data: models };
},
};
|