MockInference
Attributes
attributenamestr= 'mock'attributeConfigtype= MockInferenceConfigattributetemplate= template if template is not None else '<think>mock thinking</think>\n<answer>MOCK_ANSWER</answer>'Functions
func__init__(self, *, template=None) -> Noneparamselfparamtemplatestr | None= NoneReturns
Nonefuncgenerate(self, *, prompt, max_tokens=256, temperature=0.0, stop=None) -> strparamselfparampromptstrparammax_tokensint= 256paramtemperaturefloat= 0.0paramstoplist[str] | None= NoneReturns
str