返回顶部 IsEOS接口 接口功能判断推理使用的tokenizer是否需要使用eos。 接口格式virtual bool IsEOS() const noexcept = 0; 接口参数无。 使用样例判断返回响应是否为eos。 1bool eos = response->IsEOS(); 返回值tokenizer是否需要使用eos判断结果。 父主题: InferenceResponse