binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
63.48k stars 7.86k forks source link

[Bug]: docker代理地址查询超时 #1889

Open gfcq opened 1 month ago

gfcq commented 1 month ago

Installation Method | 安装方法与平台

Please choose | 请选择

Version | 版本

Please choose | 请选择

OS | 操作系统

Please choose | 请选择

Describe the bug | 简述

docker打开的时候代理地址查询为什么超时,用anaconda打开却可以。

Screen Shot | 有帮助的截图

屏幕截图 2024-07-12 235710

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

No response

gfcq commented 1 month ago

`version: '3' services: gpt_academic_nolocalllms: image: ghcr.io/binary-husky/gpt_academic_nolocal:master # (Auto Built by Dockerfile: docs/GithubAction+NoLocal) environment:

请查阅 config.py 以查看所有的配置信息

  API_KEY:                  '    sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                            '
  USE_PROXY:                '    True                                                                                           '
  proxies:                  '    { "http": "http://127.0.0.1:7890", "https": "http://127.0.0.1:7890", }   '
  LLM_MODEL:                '    gpt-3.5-turbo                                                                                  '

  AVAIL_LLM_MODELS:         '    ["gpt-4-1106-preview", "gpt-4-turbo-preview", "gpt-4-vision-preview",
"gpt-4o", "gpt-4-turbo", "gpt-4-turbo-2024-04-09",
"gpt-3.5-turbo-1106", "gpt-3.5-turbo-16k", "gpt-3.5-turbo", "azure-gpt-3.5",
"gpt-4", "gpt-4-32k", "azure-gpt-4", "glm-4", "glm-4v", "glm-3-turbo",
"gemini-pro", "chatglm3",
"gpt-3.5-turbo-0125", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613",
"gpt-3.5-turbo-16k-0613", "gpt-3.5-turbo-instruct",
"gpt-4-0125-preview", "gpt-4-0314", "gpt-4-0613",
"gpt-4-32k-0314", "gpt-4-32k-0613",
"gpt-4o-2024-05-13",
"claude-3-5-sonnet-20240620", "claude-3-haiku-20240307",
"claude-3-opus-20240229", "claude-3-sonnet-20240229",
"dall-e-2", "dall-e-3",
"gemini-1.0-pro-001", "gemini-1.0-pro-002", "gemini-1.0-pro-vision-001",
"gemini-1.5-flash", "gemini-1.5-flash-latest", "gemini-1.5-pro",
"gemini-1.5-pro-latest", "gemini-1.5-pro-preview-0514", "gemini-pro-1.5"]         '
  WEB_PORT:                 '    12233                                                                                          '
  ADD_WAIFU:                '    True                                                                                           '
  THEME:                  '    Default                                            '
  CHATBOT_HEIGHT:                '    1115                                                                                           '
  CODE_HIGHLIGHT:                '    True                                                                                  ' 

ports:      
   - "12233:12233"

# 启动命令
command: >
   bash -c "python3 -u main.py"

`

gfcq commented 1 month ago

上面是我docker-compose.yml代码