binary-husky / binary-husky/gpt_academic

[Bug]: 不能正确返回结果

Open
#2,100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
71.4k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

Installation Method | 安装方法与平台

Docker-Compose(Linux)

Version | 版本

Latest | 最新版

OS | 操作系统

Linux

Describe the bug | 简述

结果能返回, 但是最后报出如下错误,将结果充掉
data: {"id":"chatcmpl-QXlha2FBbmROaXhpZUFyZUF3ZXNvbWUK","object":"chat.completion.chunk","created":0,"model":"gpt-4o-mini","choices":[{"index":0,"finish_reason":"stop"}]}

Screen Shot | 有帮助的截图

1735195156261

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

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported request with Docker Compose on Linux and inspect how the streaming response handles the final data chunk containing finish_reason. Done means the completed result remains visible without the reported error or being cleared; no source file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, python
Domain
api, backend
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.