-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmodels.json
More file actions
94 lines (94 loc) · 2.34 KB
/
models.json
File metadata and controls
94 lines (94 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[
{
"id": "2610fa513fed33f5",
"type": "tab",
"label": "Models Example",
"disabled": false,
"info": "",
"env": []
},
{
"id": "a399823d7a30b91e",
"type": "function",
"z": "2610fa513fed33f5",
"name": "filter owned models",
"func": "let models = msg.payload;\n\n// Filter the data\nconst myModels = models.filter(item => {\n return item.owned_by !== 'system' && item.owned_by !== 'openai' && !item.owned_by.startsWith('openai-');\n});\n\n// Set the filtered data back to payload\nmsg.payload = myModels;\n\n// Return the message to be passed to the next node\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 590,
"y": 280,
"wires": [
[
"a60b28cb82cd91d5"
]
]
},
{
"id": "535006a3343dacc3",
"type": "OpenAI API",
"z": "2610fa513fed33f5",
"name": "list models",
"property": "payload",
"propertyType": "msg",
"service": "",
"method": "listModels",
"x": 390,
"y": 280,
"wires": [
[
"a399823d7a30b91e"
]
]
},
{
"id": "94386b0ce40460f3",
"type": "inject",
"z": "2610fa513fed33f5",
"name": "",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 275,
"y": 280,
"wires": [
[
"535006a3343dacc3"
]
],
"l": false
},
{
"id": "a60b28cb82cd91d5",
"type": "debug",
"z": "2610fa513fed33f5",
"name": "response",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 780,
"y": 280,
"wires": []
},
{
"id": "d5eee6b5ac4907f2",
"type": "comment",
"z": "2610fa513fed33f5",
"name": "List owned models (e.g., fine-tuned models).",
"info": "",
"x": 410,
"y": 240,
"wires": []
}
]