MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / fetchModels

Function fetchModels

web/src/pages/Channel/EditTagModal.js:111–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 };
110
111 const fetchModels = async () => {
112 try {
113 let res = await API.get(`/api/channel/models`);
114 let localModelOptions = res.data.data.map((model) => ({
115 label: model.id,
116 value: model.id,
117 }));
118 setOriginModelOptions(localModelOptions);
119 } catch (error) {
120 showError(error.message);
121 }
122 };
123
124 const fetchGroups = async () => {
125 try {

Callers 1

EditTagModal.jsFile · 0.70

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected