khoj/tests
sabaimran 4c135ea316
Make streaming optional for the /chat endpoint (#287)
* Update the /chat endpoint to conditionally support streaming

- If streams are enabled, return the threadgenerator as it does currently
- If stream is disabled, return a JSON response with the response/compiled references separated out
- Correspondingly, update the chat.html UI to use the streamed API, as well as Obsidian
- Rename chat/init/ to chat/history

* Update khoj.el to use the /history endpoint

- Update corresponding unit tests to use stream=true

* Remove & from call to /chat for obsidian

* Abstract functions out into a helpers.py file and clean up some of the error-catching
2023-07-09 10:12:09 -07:00
..
data Drop support for Ledger as a separate content type 2023-07-02 16:57:49 -07:00
__init__.py Move tests out to project root. Use absolute import in project 2021-09-30 04:12:14 -07:00
conftest.py In chat conftest fixtures, use *.markdown rather than *.md 2023-06-29 11:53:47 -07:00
test_chat_actors.py Make streaming optional for the /chat endpoint (#287) 2023-07-09 10:12:09 -07:00
test_chat_director.py Make streaming optional for the /chat endpoint (#287) 2023-07-09 10:12:09 -07:00
test_cli.py Update unit test and preserve prior operational ordering in main.py 2023-07-01 20:02:35 -07:00
test_client.py Drop support for Ledger as a separate content type 2023-07-02 16:57:49 -07:00
test_conversation_utils.py Fix failing unit tests by hard-coding model presence of expected search types 2023-06-13 16:32:47 -07:00
test_date_filter.py Test usage of = in date filter queries 2023-03-16 14:52:59 -06:00
test_file_filter.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_helpers.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00
test_image_search.py Use async/await in tests for query method of text and image search 2023-06-28 22:07:02 -07:00
test_jsonl_to_jsonl.py Prepend entry heading to all compiled org snippets to improve search context 2023-05-03 22:50:31 +08:00
test_markdown_to_jsonl.py Set filename as top heading of md entries for better search context 2023-05-03 22:50:31 +08:00
test_org_to_jsonl.py Set filename as top heading of org entries for better search context 2023-05-03 22:53:13 +08:00
test_orgnode.py Update org tests to use new method, update Github configuration in tests 2023-06-27 15:04:48 -07:00
test_pdf_to_jsonl.py Create tests for PDF to JSONL processor 2023-06-01 21:42:48 +05:30
test_rawconfig.py Test error on missing fields in ContentConfig pulled from Khoj.yml 2023-03-02 15:35:39 -06:00
test_text_search.py Use async/await in tests for query method of text and image search 2023-06-28 22:07:02 -07:00
test_word_filter.py Use Black to format Khoj server code and tests 2023-02-17 11:55:17 -06:00