mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 08:21:53 +08:00
[Other] support video_fps args for video bench (#7077)
This commit is contained in:
@@ -548,6 +548,9 @@ class CompletionRequest(BaseModel):
|
||||
|
||||
collect_metrics: Optional[bool] = False
|
||||
|
||||
# NOTE(Wanglongzhi2001): temporary parameter for video understanding benchmark
|
||||
video_fps: Optional[float] = None
|
||||
|
||||
def to_dict_for_infer(self, request_id=None, prompt=None):
|
||||
"""
|
||||
Convert the request parameters into a dictionary
|
||||
@@ -734,6 +737,9 @@ class ChatCompletionRequest(BaseModel):
|
||||
|
||||
collect_metrics: Optional[bool] = False
|
||||
|
||||
# NOTE(Wanglongzhi2001): temporary parameter for video understanding benchmark
|
||||
video_fps: Optional[float] = None
|
||||
|
||||
def to_dict_for_infer(self, request_id=None):
|
||||
"""
|
||||
Convert the request parameters into a dictionary
|
||||
|
||||
Reference in New Issue
Block a user