MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / RequestFuncInput

Class RequestFuncInput

fastdeploy/benchmarks/lib/endpoint_request_func.py:36–53  ·  view source on GitHub ↗

Input for requesting LLMs via API

Source from the content-addressed store, hash-verified

34
35@dataclass
36class RequestFuncInput:
37 """Input for requesting LLMs via API"""
38
39 no: int
40 prompt: str
41 history_QA: Optional[dict]
42 hyper_parameters: dict
43 api_url: str
44 prompt_len: int
45 output_len: int
46 model: str
47 model_name: Optional[str] = None
48 logprobs: Optional[int] = None
49 extra_body: Optional[dict] = None
50 multi_modal_content: Optional[dict] = None
51 ignore_eos: bool = False
52 language: Optional[str] = None
53 debug: bool = False
54
55
56@dataclass

Callers 2

benchmarkFunction · 0.90
mock_request_inputFunction · 0.90

Calls

no outgoing calls

Tested by 1

mock_request_inputFunction · 0.72