* update api * update generation_kwargs impl * update api * refactor --------- Co-authored-by: Leymore <zfz-960727@163.com>