MCPcopy Index your code
hub / github.com/mudler/LocalAI / readInputAudioFile

Function readInputAudioFile

core/http/static/chat.js:1116–1126  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

1114}
1115
1116function readInputAudioFile(file) {
1117 const FR = new FileReader();
1118
1119 FR.addEventListener("load", function(evt) {
1120 const dataURL = evt.target.result;
1121 audios.push(dataURL);
1122 audioFileMap.set(file.name, dataURL);
1123 });
1124
1125 FR.readAsDataURL(file);
1126}
1127
1128async function promptGPT(systemPrompt, input) {
1129 const chatStore = Alpine.store("chat");

Callers 2

chat.jsFile · 0.85
readInputAudioFunction · 0.85

Calls 3

addEventListenerMethod · 0.80
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected