binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。

Home Page:https://github.com/binary-husky/gpt_academic/wiki/online

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: DOC2X服务不可用。

xiaoWay opened this issue · comments

commented

Installation Method | 安装方法与平台

Docker-Compose(Linux)

Version | 版本

Latest | 最新版

OS | 操作系统

Docker

Describe the bug | 简述

按照配置说明配置了DOC2X的API KEY,然后出错了。有没有解决办法。
错误详情:
Traceback (most recent call last):
File "./crazy_functions/PDF批量翻译.py", line 52, in 批量翻译PDF文档
yield from 解析PDF_DOC2X(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, DOC2X_API_KEY, user_request)
File "./crazy_functions/PDF批量翻译.py", line 201, in 解析PDF_DOC2X
yield from 解析PDF_DOC2X_单文件(fp, *args)
File "./crazy_functions/PDF批量翻译.py", line 196, in 解析PDF_DOC2X_单文件
md_zip_path = yield from pdf2markdown(fp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./crazy_functions/PDF批量翻译.py", line 101, in pdf2markdown
raise RuntimeError(format("[ERROR] status code: %d, body: %s" % (res.status_code, res.text)))
RuntimeError: [ERROR] status code: 401, body: {"code":"unauthorized","msg":"jwt expired or invalid"}

Screen Shot | 有帮助的截图

image

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

No response

commented

鉴权问题,官方希望更新一下docker拉取包:#1766 这个PR第一种方法很好。