Skip to content

Commit 848b950

Browse files
committed
Fix error message
1 parent 881c6a7 commit 848b950

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/models/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ def _decode_chat_response(self, response):
251251
elif "Invalid API key" in error_msg:
252252
yield '<span style="color: red;">Провайдер API ответил ошибкой:</span> Неверный ключ ChimeraAPI. Возможно вы ввели его неправильно либо он деактивирован. Вы можете сгенерировать его заново в Discord: https://discord.gg/chimeragpt'
253253
elif "Reverse engineered site does not respond" in error_msg:
254-
yield '<span style="color: red;">Провайдер API ответил ошибкой: На данный момент, все сайты-провайдеры недоступны. Попробуйте позже.'
254+
yield '<span style="color: red;">The API provider responded with an error: At the moment, all provider sites are unavailable. Try again later.'
255255
elif "one_api_error" in error_msg:
256-
yield '<span style="color: red;">Провайдер API ответил ошибкой:</span> API ключ не найден. Убедитесь, что вы ввели его.'
256+
yield '<span style="color: red;">The API provider responded with an error:</span> API key not found. Make sure you have entered it. If you don\'t have it, get it at https://neuroapi.host '
257257
else:
258-
yield '<span style="color: red;">Ошибка:</span> ' + error_msg
258+
yield '<span style="color: red;">Error:</span> ' + error_msg
259259

260260
def set_key(self, new_access_key):
261261
ret = super().set_key(new_access_key)

webui_en.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def create_new_model():
8383
value=hide_middle_chars(user_api_key.value),
8484
type="password",
8585
label="API key",
86-
visible=False
86+
visible=True
8787
)
8888
if multi_api_key:
8989
usageTxt = gr.Markdown("Multiplayer mode is enabled, no need to enter a key, you can start a conversation right away", elem_id="usage_display", elem_classes="insert_block", visible=False)

0 commit comments

Comments
 (0)