langchain_huggingface.chat_models.huggingface
.TGI_RESPONSE
- class langchain_huggingface.chat_models.huggingface.TGI_RESPONSE(choices: List[Any], usage: Dict)[source]¶
TextGenInference API 的响应。
属性
choices
usage
方法
__init__
(choices, usage)- 参数
choices (List[Any]) –
usage (Dict) –
- __init__(choices: List[Any], usage: Dict) None ¶
- 参数
choices (List[Any]) –
usage (Dict) –
- 返回类型
None