Kaveen Kumarasinghe 1 year ago
commit 09ad83f22b

@ -6,3 +6,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

@ -10,7 +10,7 @@
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
# Overview
A robust, all-in-one GPT3 interface for Discord. Chat just like ChatGPT right inside Discord! Generate beautiful AI art using DALL-E 2! Automatically moderate your server using AI! Upload documents, videos, and files to get AI-assisted insights! A thorough integration with permanent conversation memory, automatic request retry, fault tolerance and reliability for servers of any scale, and much more.
A robust, all-in-one GPT3 interface for Discord. Chat just like ChatGPT right inside Discord! Generate beautiful AI art using DALL-E 2! Automatically moderate your server using AI! Upload documents, videos, and files to get AI-assisted insights! A thorough integration with permanent conversation memory powered by [Pinecone](https://www.pinecone.io/), automatic request retry, fault tolerance and reliability for servers of any scale, and much more.
SUPPORT SERVER FOR BOT SETUP: https://discord.gg/WvAHXDMS7Q (You can try out the bot here also in a limited fashion)

@ -31,7 +31,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "10.8.5"
__version__ = "10.8.6"
PID_FILE = Path("bot.pid")

@ -582,7 +582,9 @@ class Index_handler:
try:
index_file = EnvService.find_shared_file(f"indexes/{user_id}/{_index}")
except ValueError:
index_file = EnvService.find_shared_file(f"indexes/{user_id}_search/{_index}")
index_file = EnvService.find_shared_file(
f"indexes/{user_id}_search/{_index}"
)
index = await self.loop.run_in_executor(
None, partial(self.index_load_file, index_file)
@ -680,7 +682,9 @@ class Index_handler:
self.index_storage[user_id].queryable_index = simple_index
try:
price = await self.usage_service.get_price(embedding_model.last_token_usage, embeddings=True)
price = await self.usage_service.get_price(
embedding_model.last_token_usage, embeddings=True
)
except:
price = "Unknown"
@ -914,7 +918,14 @@ class ComposeModal(discord.ui.View):
)
]
self.indexes.extend([file for file in os.listdir(EnvService.find_shared_file(f"indexes/{str(user_id)}_search/"))])
self.indexes.extend(
[
file
for file in os.listdir(
EnvService.find_shared_file(f"indexes/{str(user_id)}_search/")
)
]
)
print("Found the indexes, they are ", self.indexes)
# Map everything into the short to long cache

@ -19,7 +19,7 @@ classifiers = [
]
dependencies = [
"Pillow==9.3.0",
"py-cord==2.3.2",
"py-cord==2.4.0",
"python-dotenv==0.21.0",
"requests==2.28.1",
"transformers==4.25.1",
@ -28,7 +28,7 @@ dependencies = [
"pinecone-client==2.1.0",
"sqlitedict==2.1.0",
"backoff==2.2.1",
"flask==2.2.2",
"flask==2.2.3",
"beautifulsoup4==4.11.1",
"gpt-index==0.4.14",
"PyPDF2==3.0.1",

@ -1,5 +1,5 @@
Pillow==9.3.0
py-cord==2.3.2
py-cord==2.4.0
python-dotenv==0.21.0
requests==2.28.1
transformers==4.25.1
@ -8,7 +8,7 @@ aiofiles==22.1.0
pinecone-client==2.1.0
sqlitedict==2.1.0
backoff==2.2.1
flask==2.2.2
flask==2.2.3
beautifulsoup4==4.11.1
gpt-index==0.4.14
PyPDF2==3.0.1

@ -1,5 +1,5 @@
Pillow==9.3.0
py-cord==2.3.2
py-cord==2.4.0
python-dotenv==0.21.0
requests==2.28.1
transformers==4.25.1
@ -8,7 +8,7 @@ aiofiles==22.1.0
pinecone-client==2.1.0
sqlitedict==2.1.0
backoff==2.2.1
flask==2.2.2
flask==2.2.3
beautifulsoup4==4.11.1
gpt-index==0.4.14
PyPDF2==3.0.1

@ -4,9 +4,9 @@ OPENAI_TOKEN = "<openai_api_token>"
DISCORD_TOKEN = "<discord_bot_token>"
# PINECONE_TOKEN = "<pinecone_token>" # pinecone token if you have it enabled. See readme
# PINECONE_REGION = "<pinecone_region>" # add your region here if it's not us-west1-gcp
# GOOGLE_SEARCH_API_KEY: "<google_api_key>"
# GOOGLE_SEARCH_ENGINE_ID: "<google_engine_id>"
# DEEPL_TOKEN: "<deepl_token>"
# GOOGLE_SEARCH_API_KEY = "<google_api_key>"
# GOOGLE_SEARCH_ENGINE_ID = "<google_engine_id>"
# DEEPL_TOKEN = "<deepl_token>"
DEBUG_GUILD = "974519864045756446" # discord_server_id
DEBUG_CHANNEL = "977697652147892304" # discord_chanel_id

Loading…
Cancel
Save