Remove unwanted libraries and lighten package (#1391)

This commit is contained in:
Dev Khant
2024-07-09 04:30:16 +05:30
committed by GitHub
parent ebbf90f4aa
commit 1a5d0d236a
28 changed files with 235 additions and 1541 deletions

View File

@@ -12,8 +12,7 @@ try:
from discord.ext import commands
except ModuleNotFoundError:
raise ModuleNotFoundError(
"The required dependencies for Discord are not installed."
'Please install with `pip install "embedchain[discord]"`'
"The required dependencies for Discord are not installed." "Please install with `pip install discord==2.3.2`"
) from None

View File

@@ -11,7 +11,7 @@ try:
from fastapi_poe import PoeBot, run
except ModuleNotFoundError:
raise ModuleNotFoundError(
"The required dependencies for Poe are not installed." 'Please install with `pip install "embedchain[poe]"`'
"The required dependencies for Poe are not installed." "Please install with `pip install fastapi-poe==0.0.16`"
) from None

View File

@@ -15,7 +15,7 @@ try:
except ModuleNotFoundError:
raise ModuleNotFoundError(
"The required dependencies for Slack are not installed."
'Please install with `pip install --upgrade "embedchain[slack]"`'
"Please install with `pip install slack-sdk==3.21.3 flask==2.3.3`"
) from None

View File

@@ -20,7 +20,7 @@ class WhatsAppBot(BaseBot):
except ModuleNotFoundError:
raise ModuleNotFoundError(
"The required dependencies for WhatsApp are not installed. "
'Please install with `pip install --upgrade "embedchain[whatsapp]"`'
"Please install with `pip install twilio==8.5.0 flask==2.3.3`"
) from None
super().__init__()