From 84e5932ea533889e692f986fefb74f750da2c7de Mon Sep 17 00:00:00 2001 From: Kapil Mirchandani <42468707+KapilM26@users.noreply.github.com> Date: Wed, 27 Sep 2023 02:36:58 +0530 Subject: [PATCH] Rename BaseAppConfig to be snake_case (#689) --- embedchain/apps/PersonApp.py | 2 +- embedchain/config/apps/OpenSourceAppConfig.py | 2 +- embedchain/config/apps/app_config.py | 2 +- embedchain/config/apps/{BaseAppConfig.py => base_app_config.py} | 0 embedchain/config/apps/custom_app_config.py | 2 +- embedchain/embedchain.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename embedchain/config/apps/{BaseAppConfig.py => base_app_config.py} (100%) diff --git a/embedchain/apps/PersonApp.py b/embedchain/apps/PersonApp.py index 7c478a21..79a8d5c4 100644 --- a/embedchain/apps/PersonApp.py +++ b/embedchain/apps/PersonApp.py @@ -3,7 +3,7 @@ from string import Template from embedchain.apps.App import App from embedchain.apps.open_source_app import OpenSourceApp from embedchain.config import BaseLlmConfig -from embedchain.config.apps.BaseAppConfig import BaseAppConfig +from embedchain.config.apps.base_app_config import BaseAppConfig from embedchain.config.llm.base_llm_config import (DEFAULT_PROMPT, DEFAULT_PROMPT_WITH_HISTORY) from embedchain.helper.json_serializable import register_deserializable diff --git a/embedchain/config/apps/OpenSourceAppConfig.py b/embedchain/config/apps/OpenSourceAppConfig.py index c8c50c15..f837c011 100644 --- a/embedchain/config/apps/OpenSourceAppConfig.py +++ b/embedchain/config/apps/OpenSourceAppConfig.py @@ -2,7 +2,7 @@ from typing import Optional from embedchain.helper.json_serializable import register_deserializable -from .BaseAppConfig import BaseAppConfig +from .base_app_config import BaseAppConfig @register_deserializable diff --git a/embedchain/config/apps/app_config.py b/embedchain/config/apps/app_config.py index 0833ccdf..2aee20e5 100644 --- a/embedchain/config/apps/app_config.py +++ b/embedchain/config/apps/app_config.py @@ -2,7 +2,7 @@ from typing import Optional from embedchain.helper.json_serializable import register_deserializable -from .BaseAppConfig import BaseAppConfig +from .base_app_config import BaseAppConfig @register_deserializable diff --git a/embedchain/config/apps/BaseAppConfig.py b/embedchain/config/apps/base_app_config.py similarity index 100% rename from embedchain/config/apps/BaseAppConfig.py rename to embedchain/config/apps/base_app_config.py diff --git a/embedchain/config/apps/custom_app_config.py b/embedchain/config/apps/custom_app_config.py index 4795dc31..f8bc78f6 100644 --- a/embedchain/config/apps/custom_app_config.py +++ b/embedchain/config/apps/custom_app_config.py @@ -5,7 +5,7 @@ from dotenv import load_dotenv from embedchain.helper.json_serializable import register_deserializable from embedchain.vectordb.base import BaseVectorDB -from .BaseAppConfig import BaseAppConfig +from .base_app_config import BaseAppConfig load_dotenv() diff --git a/embedchain/embedchain.py b/embedchain/embedchain.py index 9374743b..b59f300a 100644 --- a/embedchain/embedchain.py +++ b/embedchain/embedchain.py @@ -15,7 +15,7 @@ from tenacity import retry, stop_after_attempt, wait_fixed from embedchain.chunkers.base_chunker import BaseChunker from embedchain.config import AddConfig, BaseLlmConfig -from embedchain.config.apps.BaseAppConfig import BaseAppConfig +from embedchain.config.apps.base_app_config import BaseAppConfig from embedchain.data_formatter import DataFormatter from embedchain.embedder.base import BaseEmbedder from embedchain.helper.json_serializable import JSONSerializable