PaddlePaddle / PaddlePaddle/FastDeploy

[bug] 'CompletionOutput' object has no attribute 'tool_call_content'

Open
#2,802 7 comments 0 reactions 1 assignee View on GitHub

@rainyfly is already working on this.

Since Jul 10, 2025.

Dominant language
Python
Stars
3.7k
Forks
756
Avg merge
19h 28m
Merged PRs (30d)
4

Description

  File "/root/offline_inference.py", line 347, in llm_engine_generate
    for result in llm_engine.generate(prompts, True):
  File "/usr/local/lib/python3.10/site-packages/fastdeploy/engine/engine.py", line 1124, in generate
    processed = self.data_processor.process_response(result)
  File "/usr/local/lib/python3.10/site-packages/fastdeploy/input/ernie_processor.py", line 218, in process_response
    response_dict.outputs.tool_call_content == []:
AttributeError: 'CompletionOutput' object has no attribute 'tool_call_content'

from self.scheduler.get_results() touch bug result: (text=None, token_ids=[100282])

18ae43ca-e9d9-4e26-8c2d-4844f6aedd14 RequestOutput(request_id=18ae43ca-e9d9-4e26-8c2d-4844f6aedd14, prompt=None, prompt_token_ids=None, outputs=CompletionOutput(index=0, send_idx=350, text=None, token_ids=[100282], draft_token_ids=[], reasoning_content=None, metrics=RequestMetrics(arrival_time=1752141460.6052523, inference_start_time=None, first_token_time=None, time_in_queue=None, preprocess_cost_time=None, model_forward_time=None, model_execute_time=None, request_start_time=1752141455.6731944), num_cached_tokens=0)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.