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

[Bug]: openai_sensitive_id 获取方法已失效,可否只用api key? #109

Open
1 task done
Ethan-Ming opened this issue Jan 24, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Ethan-Ming
Copy link

Search for answers in existing issues

  • I have searched issues, there is no issue related to the problem I encountered

Python version

python 3.10

Issue description

git pull最新版本之后发现无法启动

终端output如下

Repro steps

No response

Relevant log output

(arco) PS E:\LLaMs\Wechat_auto-reply\new\wechat-gptbot> python app.py
Traceback (most recent call last):
  File "E:\LLaMs\Wechat_auto-reply\new\wechat-gptbot\app.py", line 1, in <module>
    from channel.wechat import WeChatChannel
  File "E:\LLaMs\Wechat_auto-reply\new\wechat-gptbot\channel\wechat.py", line 9, in <module>
    from bot.bot import Bot
  File "E:\LLaMs\Wechat_auto-reply\new\wechat-gptbot\bot\bot.py", line 1, in <module>
    import litellm
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\litellm\__init__.py", line 75, in <module>
    from .utils import client, logging, exception_type, get_optional_params, modify_integration
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\litellm\utils.py", line 8, in <module>
    encoding = tiktoken.get_encoding("cl100k_base")
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktoken\registry.py", line 63, in get_encoding
    enc = Encoding(**constructor())
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktoken_ext\openai_public.py", line 64, in cl100k_base
    mergeable_ranks = load_tiktoken_bpe(
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktoken\load.py", line 117, in load_tiktoken_bpe
    return {
  File "C:\Users\Ethan\AppData\Local\Programs\Python\Python310\lib\site-packages\tiktoken\load.py", line 117, in <dictcomp>
    return {
ValueError: not enough values to unpack (expected 2, got 1)
@Ethan-Ming Ethan-Ming added the bug Something isn't working label Jan 24, 2024
@QAbot-zh
Copy link

你报的错跟api key没关系啊,检查下litellm和tiktoken版本和项目要求的版本是否一致

@Ethan-Ming
Copy link
Author

litellm版本是正确的, tiktoken 是0.4.0
干净的Conda环境

(webot) PS E:\LLaMs\Wechat_auto-reply\wechat-gptbot> pip show tiktoken
Name: tiktoken
Version: 0.4.0

(webot) PS E:\LLaMs\Wechat_auto-reply\wechat-gptbot> pip show litellm
Name: litellm
Version: 0.1.365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants