Commit 6cc5d19
Add support for reasoning models and token usage display (Azure-Samples#2448)
* WIP
* WIP
* ruff, black
* adding usage
* mypy
* ruff, black
* mypy, ruff, black, and update generate thought steps
* fix comments, set answer thought tag on streaming approaches
* fixing frontend
* fixing backend + frontend
* token graph fixup
* fix token usage for non-streaming response
* re-style token graph
* updates
* adddressing feedback
* ruff, black
* prettify
* fixing typing errors
* ruff, black
* mypy, ruff
* prettier
* trying to fix test failures
* fixing test failures
* fix streaming allowed setup
* black
* try to fix e2e test
* add tests; updating env vars
* adding tests
* rerecording
* more recording
* add tests; ruff, black
* run prettier
* update docs
* fix test
* fix linter
* Fleshed out readme
* Adding reasoning to deploy featureS
* Make changes from pamelas feedback
* undangle that comma
---------
Co-authored-by: Pamela Fox <[email protected]>1 parent 9afbefa commit 6cc5d19
File tree
104 files changed
+1847
-224
lines changed- .azdo/pipelines
- .github/workflows
- app
- backend
- approaches
- frontend/src
- api
- components
- AnalysisPanel
- Settings
- locales
- da
- en
- es
- fr
- it
- ja
- nl
- ptBR
- tr
- pages
- ask
- chat
- docs
- images
- infra
- tests
- snapshots/test_app
- test_ask_prompt_template_concat
- client0
- client1
- test_ask_prompt_template
- client0
- client1
- test_ask_rtr_hybrid
- client0
- client1
- test_ask_rtr_text_filter_public_documents/auth_public_documents_client0
- test_ask_rtr_text_filter/auth_client0
- test_ask_rtr_text_semanticcaptions
- client0
- client1
- test_ask_rtr_text_semanticranker
- client0
- client1
- test_ask_rtr_text
- client0
- client1
- test_ask_vision
- client0
- client1
- test_chat_followup
- client0
- client1
- test_chat_hybrid_semantic_captions
- client0
- client1
- test_chat_hybrid_semantic_ranker
- client0
- client1
- test_chat_hybrid
- client0
- client1
- test_chat_prompt_template_concat
- client0
- client1
- test_chat_prompt_template
- client0
- client1
- test_chat_seed
- client0
- client1
- test_chat_session_state_persists
- client0
- client1
- test_chat_stream_followup
- client0
- client1
- test_chat_stream_session_state_persists
- client0
- client1
- test_chat_stream_text_filter
- auth_client0
- client0
- test_chat_stream_text_reasoning
- reasoning_client0
- reasoning_client1
- test_chat_stream_text
- client0
- client1
- test_chat_stream_vision
- client0
- client1
- test_chat_text_filter_public_documents/auth_public_documents_client0
- test_chat_text_filter/auth_client0
- test_chat_text_reasoning
- reasoning_client0
- reasoning_client1
- test_chat_text_semantic_ranker
- client0
- client1
- test_chat_text_semanticcaptions
- client0
- client1
- test_chat_text_semanticranker
- client0
- client1
- test_chat_text
- client0
- client1
- test_chat_vector_semantic_ranker
- client0
- client1
- test_chat_vector
- client0
- client1
- test_chat_vision_vectors
- client0
- client1
- test_chat_vision
- client0
- client1
- test_chat_with_history
- client0
- client1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
104 files changed
+1847
-224
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
296 | 302 | | |
297 | 303 | | |
298 | 304 | | |
| |||
423 | 429 | | |
424 | 430 | | |
425 | 431 | | |
| 432 | + | |
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
| |||
640 | 647 | | |
641 | 648 | | |
642 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
643 | 657 | | |
644 | 658 | | |
645 | 659 | | |
| |||
667 | 681 | | |
668 | 682 | | |
669 | 683 | | |
| 684 | + | |
670 | 685 | | |
671 | 686 | | |
672 | 687 | | |
| |||
684 | 699 | | |
685 | 700 | | |
686 | 701 | | |
| 702 | + | |
687 | 703 | | |
688 | 704 | | |
689 | 705 | | |
690 | 706 | | |
691 | 707 | | |
692 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
693 | 722 | | |
694 | 723 | | |
695 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
92 | 144 | | |
93 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
94 | 154 | | |
95 | 155 | | |
96 | 156 | | |
| |||
106 | 166 | | |
107 | 167 | | |
108 | 168 | | |
| 169 | + | |
109 | 170 | | |
110 | 171 | | |
111 | 172 | | |
| |||
119 | 180 | | |
120 | 181 | | |
121 | 182 | | |
| 183 | + | |
| 184 | + | |
122 | 185 | | |
123 | 186 | | |
124 | 187 | | |
| |||
281 | 344 | | |
282 | 345 | | |
283 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
284 | 422 | | |
285 | 423 | | |
286 | 424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
15 | 23 | | |
16 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| |||
49 | 59 | | |
50 | 60 | | |
51 | 61 | | |
52 | | - | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
57 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
58 | 71 | | |
59 | 72 | | |
60 | 73 | | |
| |||
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
| 88 | + | |
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
| |||
80 | 94 | | |
81 | 95 | | |
82 | 96 | | |
| 97 | + | |
83 | 98 | | |
84 | 99 | | |
85 | 100 | | |
| |||
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
103 | 125 | | |
104 | 126 | | |
105 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
106 | 131 | | |
107 | 132 | | |
108 | 133 | | |
| |||
0 commit comments