binary-husky / binary-husky/gpt_academic

[Bug]: api_key 验证无效

Open
#1,948 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71.4k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

### Installation Method | 安装方法与平台

Anaconda (I used latest requirements.txt)

### Version | 版本

Latest | 最新版

### OS | 操作系统

Windows

### Describe the bug | 简述

我是WIN10系统,用的是GPT 学术优化 3.83版本,但是按照要求输入API之后无论如何都是显示如下:
缺少api_key。
临时解决方案:直接在输入区键入api_key,然后回车提交。
长效解决方案:在config.py中配置。

为此,我已经连续申请了3次新的 open ai api_key,但是连续测试都是无效,我不知道哪里出现问题。
是此版本对api key 不支持了吗 还是其他原因

请帮忙答疑解惑,感谢

### Screen Shot | 有帮助的截图

![微信图片_20240821102847](https://github.com/user-attachments/assets/965b7922-d62f-4c6f-b599-e3ccba71e510)

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

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the API-key prompt on Windows with the reported Anaconda setup, comparing direct input with the config.py configuration. Confirm the cause of the “缺少api_key” message and verify that a valid key is accepted through the intended configuration path without requiring manual entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.