Commit 3d0419c
authored
Update ToChatResponse{Async} to also factor in AuthorName (#6910)
* Update ToChatResponse{Async} to also factor in AuthorName
Originally we were only factoring in Role. Then we also augmented it to factor in MessageId, since updates from different messages are by definition not part of the same message. Now it also makes sense to factor in AuthorName, as different text from different speakers / agents are also by definition not part of the same message.
* Fix useAsync inversion in tests1 parent ffee6c7 commit 3d0419c
3 files changed
Lines changed: 383 additions & 48 deletions
File tree
- src/Libraries/Microsoft.Extensions.AI.Abstractions/ChatCompletion
- test/Libraries/Microsoft.Extensions.AI.Abstractions.Tests
- ChatCompletion
- SpeechToText
Lines changed: 18 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
325 | 312 | | |
326 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
327 | 318 | | |
328 | 319 | | |
| 320 | + | |
| 321 | + | |
329 | 322 | | |
330 | 323 | | |
331 | 324 | | |
| |||
418 | 411 | | |
419 | 412 | | |
420 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
421 | 422 | | |
0 commit comments