Skip to content

Commit 30945ee

Browse files
authored
Merge pull request #53 from code-yeongyu/feature/bumpup-revchatgpt
Bump up dependencies
2 parents 373e679 + 2bec0b5 commit 30945ee

File tree

3 files changed

+434
-567
lines changed

3 files changed

+434
-567
lines changed

aishell/query_clients/reverse_engineered_chatgpt_client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import Optional, Union, cast
2+
from typing import Optional, Union
33

44
from revChatGPT.V1 import Chatbot
55

@@ -42,9 +42,9 @@ def query(self, prompt: str) -> str:
4242

4343
response_text = ''
4444
for data in chatbot.ask(prompt):
45-
response_text = data['message']
45+
response_text = data['message'] # type: ignore
4646

47-
response_text = make_executable_command(cast(str, response_text))
47+
response_text = make_executable_command(response_text)
4848

4949
return response_text
5050

0 commit comments

Comments
 (0)