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]: 输入了api-key,但仍显示没有读到 #2021

Open
danta233 opened this issue Oct 28, 2024 · 4 comments
Open

[Bug]: 输入了api-key,但仍显示没有读到 #2021

danta233 opened this issue Oct 28, 2024 · 4 comments

Comments

@danta233
Copy link

Installation Method | 安装方法与平台

OneKeyInstall (一键安装脚本-windows)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

QQ截图20241028214603
如图,输入key但没有读入

Screen Shot | 有帮助的截图

image

Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

No response

@yy99988
Copy link

yy99988 commented Nov 5, 2024

我也是这种情况,升级到3.9后,我是docker版本

@Tara-Liu
Copy link

Tara-Liu commented Nov 5, 2024

一样的情况,我用的官方的sk-proj开头的key

@EricJiang0423
Copy link
Contributor

刚刚我试了一下可以把shared_utils\key_pattern_manager.py文件中的openai_regex中加入以下代码解决: r"sk-proj-[a-zA-Z0-9_-]{156}$|"+ 以匹配新的apikey格式,但是未经过严格验证

@Tara-Liu
Copy link

Tara-Liu commented Nov 6, 2024

刚刚我试了一下可以把shared_utils\key_pattern_manager.py文件中的openai_regex中加入以下代码解决: r"sk-proj-[a-zA-Z0-9_-]{156}$|"+ 以匹配新的apikey格式,但是未经过严格验证

感谢,你的方法是有用的

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

4 participants