fix: transcription headers
This commit is contained in:
parent
d8b1781d7b
commit
318e0989a2
|
@ -220,13 +220,16 @@ export function validString(x: string): boolean {
|
|||
return x?.length > 0;
|
||||
}
|
||||
|
||||
export function getHeaders() {
|
||||
export function getHeaders(ignoreHeaders?: boolean) {
|
||||
const accessStore = useAccessStore.getState();
|
||||
const chatStore = useChatStore.getState();
|
||||
const headers: Record<string, string> = {
|
||||
let headers: Record<string, string> = {};
|
||||
if (!ignoreHeaders) {
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
Accept: "application/json",
|
||||
};
|
||||
}
|
||||
|
||||
const clientConfig = getClientConfig();
|
||||
|
||||
|
|
|
@ -1686,7 +1686,6 @@ function _Chat() {
|
|||
? Locale.Chat.Actions.StopSpeech
|
||||
: Locale.Chat.Actions.Speech
|
||||
}
|
||||
loding={speechLoading}
|
||||
icon={
|
||||
speechStatus ? (
|
||||
<SpeakStopIcon />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PluginConfig, TTSConfig, TTSConfigValidator } from "../store";
|
||||
import { TTSConfig, TTSConfigValidator } from "../store";
|
||||
|
||||
import Locale from "../locales";
|
||||
import { ListItem, Select } from "./ui-lib";
|
||||
|
@ -111,6 +111,7 @@ export function TTSConfigList(props: {
|
|||
subTitle={Locale.Settings.TTS.Speed.SubTitle}
|
||||
>
|
||||
<InputRange
|
||||
aria={Locale.Settings.TTS.Speed.Title}
|
||||
value={props.ttsConfig.speed?.toFixed(1)}
|
||||
min="0.3"
|
||||
max="4.0"
|
||||
|
|
Loading…
Reference in New Issue