Commit af9aac2
chore!: Update finish reason in output of
* Update finish reason
* Fix unit test
* Add reno
* Update releasenotes/notes/update-finish-reason-hf-api-chat-gen-c700042a079733e8.yaml
Co-authored-by: Amna Mubashar <amnahkhan.ak@gmail.com>
* Update async as well
* Fix unit test
---------
Co-authored-by: Amna Mubashar <amnahkhan.ak@gmail.com>HuggingFaceAPIChatGenerator to match between stream and non-stream modes (#9686)1 parent 03d9f0f commit af9aac2
3 files changed
Lines changed: 32 additions & 6 deletions
File tree
- haystack/components/generators/chat
- releasenotes/notes
- test/components/generators/chat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| |||
565 | 571 | | |
566 | 572 | | |
567 | 573 | | |
| 574 | + | |
568 | 575 | | |
569 | 576 | | |
570 | | - | |
| 577 | + | |
571 | 578 | | |
572 | 579 | | |
573 | 580 | | |
| |||
629 | 636 | | |
630 | 637 | | |
631 | 638 | | |
| 639 | + | |
632 | 640 | | |
633 | 641 | | |
634 | | - | |
| 642 | + | |
635 | 643 | | |
636 | 644 | | |
637 | 645 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| |||
0 commit comments