diff --git a/chat/src/event_config.py b/chat/src/event_config.py index 7794c8e3..cb339455 100644 --- a/chat/src/event_config.py +++ b/chat/src/event_config.py @@ -21,7 +21,7 @@ MAX_K = 100 TEMPERATURE = 0.2 TEXT_KEY = "id" -VERSION = "2023-07-01-preview" +VERSION = "2024-02-01" @dataclass class EventConfig: diff --git a/chat/test/helpers/test_metrics.py b/chat/test/helpers/test_metrics.py index 34528851..4c65d0e2 100644 --- a/chat/test/helpers/test_metrics.py +++ b/chat/test/helpers/test_metrics.py @@ -51,7 +51,7 @@ def test_token_usage(self): "prompt": 302, "question": 15, "source_documents": 1, - "total": 350 + "total": 324 } self.assertEqual(result, expected_result) diff --git a/chat/test/test_event_config.py b/chat/test/test_event_config.py index 1be422d5..625d854d 100644 --- a/chat/test/test_event_config.py +++ b/chat/test/test_event_config.py @@ -53,7 +53,7 @@ def test_attempt_override_without_superuser_status(self): "attributes": EventConfig.DEFAULT_ATTRIBUTES, "azure_endpoint": "https://test.openai.azure.com/", "k": 5, - "openai_api_version": "2023-07-01-preview", + "openai_api_version": "2024-02-01", "question": "test question", "ref": "test ref", "temperature": 0.2,