We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traceback (most recent call last): File "generate_instruction.py", line 24, in import utils File "/mnt/amj/chatgpt/BELLE/utils.py", line 40, in prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]], TypeError: 'type' object is not subscriptable (chatgpt) [root@iZ2zecged3txs683zzjfnpZ BELLE]# python3 generate_instruction.py generate_instruction_following_data --api=chat --model_name=gpt-3.5-turbo Traceback (most recent call last): File "generate_instruction.py", line 24, in import utils File "/mnt/amj/chatgpt/BELLE/utils.py", line 40, in prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]], TypeError: 'type' object is not subscriptable
麻烦看下如何解决
The text was updated successfully, but these errors were encountered:
这个好像是python的版本问题,更新python版本或者from future import annotations
Sorry, something went wrong.
应该是python版本的问题。我这里python3.9下面执行没问题。
No branches or pull requests
Traceback (most recent call last):
File "generate_instruction.py", line 24, in
import utils
File "/mnt/amj/chatgpt/BELLE/utils.py", line 40, in
prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]],
TypeError: 'type' object is not subscriptable
(chatgpt) [root@iZ2zecged3txs683zzjfnpZ BELLE]# python3 generate_instruction.py generate_instruction_following_data --api=chat --model_name=gpt-3.5-turbo
Traceback (most recent call last):
File "generate_instruction.py", line 24, in
import utils
File "/mnt/amj/chatgpt/BELLE/utils.py", line 40, in
prompts: Union[str, Sequence[str], Sequence[dict[str, str]], dict[str, str]],
TypeError: 'type' object is not subscriptable
麻烦看下如何解决
The text was updated successfully, but these errors were encountered: