Skip to content

Commit

Permalink
fixed python-multipart and multipart
Browse files Browse the repository at this point in the history
  • Loading branch information
sfahad1414 committed Dec 9, 2024
1 parent b7f6d23 commit 95c3f8d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions kairon/api/app/routers/bot/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metadata/llm_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -68,4 +67,5 @@ mongoengine-jsonschema==0.1.3
fernet==1.0.1
google-generativeai
huggingface-hub==0.25.2
more-itertools
more-itertools
python-multipart>=0.0.18
2 changes: 1 addition & 1 deletion tests/integration_test/history_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}]}
Expand Down

0 comments on commit 95c3f8d

Please sign in to comment.