binary-husky / binary-husky/gpt_academic

[Bug]: win11 24H2版本下,通过docker部署gpt_academic不能与one-api正常协同使用

Open
#2,017 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71.3k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

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

Docker(Windows/Mac)

### Version | 版本

Latest | 最新版

### OS | 操作系统

Windows

### Describe the bug | 简述

![image](https://github.com/user-attachments/assets/03bc7adc-200d-4e61-ae09-4e826301013e)
给笔记本全新安装了最新的windows11 24H2版本,在windows下用docker部署gpt_academic (即GA) 和one-api,其中,yml中的配置如上图。
用docker部署完成后,单独使用GA和one-api都没问题,GA能够通过代理正常使用gemini-pro模型,one-api的后台也能正常访问,并且one-api中配置的所有模型都能测试连通。
但是,只要在GA中使用one-api的模型,就会报错:“网络错误,检查代理服务器是否可用,以及代理设置的格式是否正确,格式须是[协议]://[地址]:[端口],缺一不可。”,具体报错情况如下图:
![image](https://github.com/user-attachments/assets/cfaef0f9-1618-4b32-8232-48441e9f5b7b)

出现这个错误很奇怪,因为代理我已经配置好了,均能正常访问,并且单独使用GA时,也能通过代理访问gemini-pro模型。其中,在最新的windows11 24H2版本中,我是按照如下微软官方介绍的方式安装的docker desktop:
https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-containers

不知道什么原因,用docker部署后的GA和one-api就是无法正常协同,之前用老版本windows11时就没这个问题。希望尽快修正,谢谢各位开发者成员!

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

![image](https://github.com/user-attachments/assets/a965ceab-df55-4d0b-aaa0-e2e767bfbe12)
![image](https://github.com/user-attachments/assets/aa27b5b9-4d12-4b7d-922b-5bc547bdc34e)

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

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

The payload points to the Docker deployment and its yml configuration on Windows 11 24H2; start by reproducing the GA-to-one-api model request while checking container networking and proxy settings. Done means GA can use an one-api model successfully in that setup; no repository file or test is named, and the issue provides no traceback.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.