MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / loadChannelModels

Function loadChannelModels

web/src/helpers/api.js:227–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225
226let channelModels = undefined;
227export async function loadChannelModels() {
228 const res = await API.get('/api/models');
229 const { success, data } = res.data;
230 if (!success) {
231 return;
232 }
233 channelModels = data;
234 localStorage.setItem('channel_models', JSON.stringify(data));
235}
236
237export function getChannelModels(type) {
238 if (channelModels !== undefined && type in channelModels) {

Callers 1

ChannelsTable.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected