Commit 781bf21
Add Markdown Render Support to GPT completions (#56)
* Add Markdown support. Use rehype-raw to retain raw innerHTML
* Rm extra whitespace breaks
* Replace python-jose with pyjwt.
* Replace non-existent get_unverified_claims function
* Change Exception to handle JWT-specific errors
* Convert the public key to PEM format
* Add pem format tests
* Another test, plus autherror fixes
* Remove directives to not return markdown.
* Add table support
* Update snapshots with new system prompt
---------
Co-authored-by: pmorgen <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>1 parent d313c6a commit 781bf21
File tree
66 files changed
+2291
-2514
lines changed- app
- backend/approaches
- frontend
- src/components
- Answer
- MarkdownViewer
- tests/snapshots/test_app
- 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_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
- 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_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
- test_chat_with_long_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.
66 files changed
+2291
-2514
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | | - | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | | - | |
38 | | - | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments