Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions webui/components/chat/speech/speech-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { updateChatInput, sendMessage } from "/index.js";
import { sleep } from "/js/sleep.js";
import { store as microphoneSettingStore } from "/components/settings/speech/microphone-setting-store.js";
import * as shortcuts from "/js/shortcuts.js";
import * as API from "/js/api.js";

const Status = {
INACTIVE: "inactive",
Expand Down Expand Up @@ -109,9 +110,7 @@ const model = {

// Load settings from server
async loadSettings() {
try {
const response = await fetchApi("/settings_get", { method: "POST" });
const data = await response.json();
const data = await API.callJsonApi("settings_get", null);
const settings = data?.settings || {};

if (settings) {
Expand Down