mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Benchmark]支持Completions接口 (#5700)
* benchmark工具支持受限解码场景指定response_format * Update backend_request_func.py output.success判断兼容思考内容超长截断时回复内容为空的情况 * Update benchmark_serving.py 更新benchmark_metrics * 支持Completions接口 * 支持Completions接口 * 支持Completions接口 * [Benchmark]支持Completions接口 * [Benchmark]支持Completions接口 --------- Co-authored-by: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
This commit is contained in:
@@ -24,9 +24,9 @@ def test_incremental_image_reasoning_consistency():
|
||||
"type": "image_url",
|
||||
"image_url": {
|
||||
"url": "https://paddlenlp.bj.bcebos.com/datasets/paddlemix/demo_images/example2.jpg"
|
||||
}
|
||||
},
|
||||
},
|
||||
{"type": "text", "text": "图中的文物属于哪个年代?"}
|
||||
{"type": "text", "text": "图中的文物属于哪个年代?"},
|
||||
],
|
||||
}
|
||||
],
|
||||
@@ -69,10 +69,9 @@ def test_incremental_image_reasoning_consistency():
|
||||
"type": "image_url",
|
||||
"image_url": {
|
||||
"url": "https://paddlenlp.bj.bcebos.com/datasets/paddlemix/demo_images/example2.jpg"
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
],
|
||||
"prompt_token_ids": tokens1,
|
||||
|
||||
Reference in New Issue
Block a user