feat: model 列表增加 input 字段
Made-with: Cursor
This commit is contained in:
@@ -52,7 +52,7 @@ function fetchModels(baseUrl, apiKey, callback) {
|
||||
try {
|
||||
const json = JSON.parse(data);
|
||||
if (json.data && Array.isArray(json.data)) {
|
||||
callback(null, json.data.map((m) => ({ id: m.id, name: m.id })));
|
||||
callback(null, json.data.map((m) => ({ id: m.id, name: m.id, input: ['text', 'image'] })));
|
||||
} else if (json.error) {
|
||||
callback(new Error(json.error.message || JSON.stringify(json.error)));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user