mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +00:00
huggingface: Added a missing argument to a ChatHuggingFace doc notebook. (#24929)
- **Description:** When adding docs for constructing ChatHuggingFace using a HuggingFacePipeline, I forgot to add `return_full_text=False` as an argument. In this setup, the chat response would incorrectly contain all the input text. I am fixing that here by adding that line to the offending notebook. --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
@@ -129,6 +129,7 @@
|
||||
" max_new_tokens=512,\n",
|
||||
" do_sample=False,\n",
|
||||
" repetition_penalty=1.03,\n",
|
||||
" return_full_text=False,\n",
|
||||
" ),\n",
|
||||
")"
|
||||
]
|
||||
|
Reference in New Issue
Block a user