mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2026-01-04 13:35:28 +01:00
adjust imports
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import json
|
||||
|
||||
from bot.plugins.crypto import CryptoPlugin
|
||||
from bot.plugins.weather import WeatherPlugin
|
||||
from bot.plugins.web_search import WebSearchPlugin
|
||||
from bot.plugins.wolfram_alpha import WolframAlphaPlugin
|
||||
from plugins.crypto import CryptoPlugin
|
||||
from plugins.weather import WeatherPlugin
|
||||
from plugins.web_search import WebSearchPlugin
|
||||
from plugins.wolfram_alpha import WolframAlphaPlugin
|
||||
|
||||
|
||||
class PluginManager:
|
||||
|
||||
@@ -3,7 +3,7 @@ import os
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
from bot.functions import PluginManager
|
||||
from functions import PluginManager
|
||||
from openai_helper import OpenAIHelper, default_max_tokens, are_functions_available
|
||||
from telegram_bot import ChatGPTTelegramBot
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ from calendar import monthrange
|
||||
|
||||
from tenacity import retry, stop_after_attempt, wait_fixed, retry_if_exception_type
|
||||
|
||||
from bot.functions import PluginManager
|
||||
from functions import PluginManager
|
||||
|
||||
# Models can be found here: https://platform.openai.com/docs/models/overview
|
||||
GPT_3_MODELS = ("gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613")
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Dict
|
||||
|
||||
import requests
|
||||
|
||||
from bot.plugins.plugin import Plugin
|
||||
from .plugin import Plugin
|
||||
|
||||
|
||||
# Author: https://github.com/stumpyfr
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Dict
|
||||
|
||||
import requests
|
||||
|
||||
from bot.plugins.plugin import Plugin
|
||||
from .plugin import Plugin
|
||||
|
||||
|
||||
class WeatherPlugin(Plugin):
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Dict
|
||||
|
||||
from duckduckgo_search import DDGS
|
||||
|
||||
from bot.plugins.plugin import Plugin
|
||||
from .plugin import Plugin
|
||||
|
||||
|
||||
class WebSearchPlugin(Plugin):
|
||||
|
||||
@@ -3,7 +3,7 @@ from typing import Dict
|
||||
|
||||
import wolframalpha
|
||||
|
||||
from bot.plugins.plugin import Plugin
|
||||
from .plugin import Plugin
|
||||
|
||||
|
||||
class WolframAlphaPlugin(Plugin):
|
||||
|
||||
Reference in New Issue
Block a user