binary-husky / binary-husky/gpt_academic
[Bug]: 使用openrouter接入openai时对话报错
- Dominant language
- Python
- Stars
- 71.3k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Installation Method | 安装方法与平台
OneKeyInstall (一键安装脚本-windows)
### Version | 版本
Latest | 最新版
### OS | 操作系统
Windows
### Describe the bug | 简述
按第三方api修改配置:
API_KEY = "sk-or-v1-XXXXX"
CUSTOM_API_KEY_PATTERN = "sk-or-v1-XXXXX"
API_URL_REDIRECT {"https://api.openai.com/v1/chat/completions":"https://openrouter.ai/api/v1/chat/completions"}
网络配置已代理
### Screen Shot | 有帮助的截图

### 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 OpenRouter configuration on Windows with the reported API URL redirect and proxy settings. Capture the missing terminal traceback and compare the OpenAI-compatible request path with the project's API integration. Done means the conversation succeeds through OpenRouter or the failure is reported with a clear diagnostic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100