mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix parsing questions generated by extract_questions actor into list
The previous json parsing was failing to handle questions with date filters Fix the chat actor tests to run without throwing error with freezegun complaining about importing transformers.local_llama model Remove quote escapes from date filter examples provided to extract_questions actor
This commit is contained in:
@@ -4,6 +4,7 @@ from datetime import datetime
|
||||
|
||||
# External Packages
|
||||
import pytest
|
||||
import freezegun
|
||||
from freezegun import freeze_time
|
||||
|
||||
# Internal Packages
|
||||
@@ -19,6 +20,8 @@ if api_key is None:
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
freezegun.configure(extend_ignore_list=["transformers"])
|
||||
|
||||
|
||||
# Test
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user