mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-02 03:15:11 +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:
parent
bfc59c1d26
commit
769c3bb838
@ -129,6 +129,7 @@
|
|||||||
" max_new_tokens=512,\n",
|
" max_new_tokens=512,\n",
|
||||||
" do_sample=False,\n",
|
" do_sample=False,\n",
|
||||||
" repetition_penalty=1.03,\n",
|
" repetition_penalty=1.03,\n",
|
||||||
|
" return_full_text=False,\n",
|
||||||
" ),\n",
|
" ),\n",
|
||||||
")"
|
")"
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user