format code
This commit is contained in:
@@ -21,7 +21,7 @@ const Templates = (props: {
|
||||
if (!newChatStore.apiEndpoint) {
|
||||
newChatStore.apiEndpoint = getDefaultParams(
|
||||
"api",
|
||||
chatStore.apiEndpoint,
|
||||
chatStore.apiEndpoint
|
||||
);
|
||||
}
|
||||
if (!newChatStore.apiKey) {
|
||||
@@ -30,37 +30,37 @@ const Templates = (props: {
|
||||
if (!newChatStore.whisper_api) {
|
||||
newChatStore.whisper_api = getDefaultParams(
|
||||
"whisper-api",
|
||||
chatStore.whisper_api,
|
||||
chatStore.whisper_api
|
||||
);
|
||||
}
|
||||
if (!newChatStore.whisper_key) {
|
||||
newChatStore.whisper_key = getDefaultParams(
|
||||
"whisper-key",
|
||||
chatStore.whisper_key,
|
||||
chatStore.whisper_key
|
||||
);
|
||||
}
|
||||
if (!newChatStore.tts_api) {
|
||||
newChatStore.tts_api = getDefaultParams(
|
||||
"tts-api",
|
||||
chatStore.tts_api,
|
||||
chatStore.tts_api
|
||||
);
|
||||
}
|
||||
if (!newChatStore.tts_key) {
|
||||
newChatStore.tts_key = getDefaultParams(
|
||||
"tts-key",
|
||||
chatStore.tts_key,
|
||||
chatStore.tts_key
|
||||
);
|
||||
}
|
||||
if (!newChatStore.image_gen_api) {
|
||||
newChatStore.image_gen_api = getDefaultParams(
|
||||
"image-gen-api",
|
||||
chatStore.image_gen_api,
|
||||
chatStore.image_gen_api
|
||||
);
|
||||
}
|
||||
if (!newChatStore.image_gen_key) {
|
||||
newChatStore.image_gen_key = getDefaultParams(
|
||||
"image-gen-key",
|
||||
chatStore.image_gen_key,
|
||||
chatStore.image_gen_key
|
||||
);
|
||||
}
|
||||
newChatStore.cost = 0;
|
||||
|
||||
Reference in New Issue
Block a user