Skip to content
New issue

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

我用本地部署提示这些错误可能是什么原因呢? #41

Open
jiburan999888 opened this issue Oct 8, 2023 · 1 comment
Open

Comments

@jiburan999888
Copy link

root@iZt4naudvth5fc699pje2kZ:~/chatgpt-tarot-divination-main# ./venv/bin/python3 main.py
Traceback (most recent call last):
File "main.py", line 16, in
from router.chatgpt_router import router as chatgpt_router
File "/root/chatgpt-tarot-divination-main/router/chatgpt_router.py", line 17, in
from .divination import DivinationFactory
File "/root/chatgpt-tarot-divination-main/router/divination/init.py", line 1, in
from . import base
File "/root/chatgpt-tarot-divination-main/router/divination/base.py", line 16, in
class DivinationFactory(metaclass=MetaDivination):
File "/root/chatgpt-tarot-divination-main/router/divination/base.py", line 25, in DivinationFactory
def build_prompt(self, divination_body: DivinationBody) -> tuple[str, str]:
TypeError: 'type' object is not subscriptable

@dreamhunter2333
Copy link
Owner

python 版本是多少呢,测试 python3.9 + 应该没问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants