From 95c3f8d05d901a167185c53b21c09f28f37c0c4a Mon Sep 17 00:00:00 2001 From: fahad_shaikh Date: Mon, 9 Dec 2024 14:04:09 +0530 Subject: [PATCH] fixed python-multipart and multipart --- kairon/api/app/routers/bot/data.py | 6 +++--- metadata/llm_metadata.yml | 2 +- requirements/prod.txt | 12 ++++++------ tests/integration_test/history_client_test.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/kairon/api/app/routers/bot/data.py b/kairon/api/app/routers/bot/data.py index 36cb4b4d4..fa55a814b 100644 --- a/kairon/api/app/routers/bot/data.py +++ b/kairon/api/app/routers/bot/data.py @@ -8,12 +8,12 @@ from kairon.api.models import Response, CognitiveDataRequest, CognitionSchemaRequest, CollectionDataRequest from kairon.events.definitions.content_importer import DocContentImporterEvent from kairon.events.definitions.faq_importer import FaqDataImporterEvent +from kairon.exceptions import AppException from kairon.shared.auth import Authentication -from kairon.shared.cognition.processor import CognitionDataProcessor from kairon.shared.cognition.data_objects import CognitionSchema +from kairon.shared.cognition.processor import CognitionDataProcessor from kairon.shared.concurrency.actors.factory import ActorFactory -from kairon.shared.constants import DESIGNER_ACCESS, ActorType -from kairon.exceptions import AppException +from kairon.shared.constants import ActorType from kairon.shared.constants import DESIGNER_ACCESS from kairon.shared.data.processor import MongoProcessor from kairon.shared.models import User diff --git a/metadata/llm_metadata.yml b/metadata/llm_metadata.yml index 04d03d170..fb311e1f2 100644 --- a/metadata/llm_metadata.yml +++ b/metadata/llm_metadata.yml @@ -18,7 +18,7 @@ openai: model: type: "string" default: "gpt-4o-mini" - enum: ["gpt-3.5-turbo", "gpt-3.5-turbo-instruct", "gpt-4o-mini"] + enum: ["gpt-3.5-turbo", "gpt-4o-mini"] description: "The model hyperparameter is the ID of the model to use such as gpt-2, gpt-3, or a custom model that you have trained or fine-tuned." top_p: type: "number" diff --git a/requirements/prod.txt b/requirements/prod.txt index 671749292..504571aad 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -1,7 +1,7 @@ rasa[full]==3.6.20 mongoengine==0.29.0 -fastapi==0.112.2 -uvicorn[standard]==0.30.6 +fastapi==0.115.6 +uvicorn[standard]==0.32.0 smart-config==0.1.3 fastapi_sso==0.15.0 fastapi-keycloak==1.0.11 @@ -21,7 +21,6 @@ google-cloud-translate==3.16.0 blinker==1.8.2 pymupdf==1.24.9 python-docx==1.1.2 -python-multipart==0.0.9 pandas==2.2.2 openpyxl==3.2.0b1 sentencepiece==0.1.99 @@ -34,8 +33,8 @@ APScheduler==3.9.1.post1 croniter==2.0.7 faiss-cpu==1.8.0.post1 tiktoken==0.7.0 -RestrictedPython==7.2 -AccessControl==7.0 +RestrictedPython>=7.3 +AccessControl>=7.2 timeout-decorator==0.5.0 googlesearch-python==1.2.5 aiohttp-retry==2.8.3 @@ -68,4 +67,5 @@ mongoengine-jsonschema==0.1.3 fernet==1.0.1 google-generativeai huggingface-hub==0.25.2 -more-itertools \ No newline at end of file +more-itertools +python-multipart>=0.0.18 \ No newline at end of file diff --git a/tests/integration_test/history_client_test.py b/tests/integration_test/history_client_test.py index c704248e8..4add3e585 100644 --- a/tests/integration_test/history_client_test.py +++ b/tests/integration_test/history_client_test.py @@ -1251,7 +1251,7 @@ def test_wordcloud_with_kairon_client(mock_auth, mock_mongo_processor): responses.add( responses.GET, f"https://localhost:8083/api/history/{pytest.bot}/conversations/wordcloud?from_date={from_date}" - f"&to_date={to_date}&u_bound=1&l_bound=0&stopword_list=None", + f"&to_date={to_date}&u_bound=1.0&l_bound=0.0&stopword_list=None", status=200, match=[responses.matchers.json_params_matcher({})], json={"data": [{'_id': 'nlu_fallback', 'count': 32}]}