The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Bugfix] fix config validation for google llm config (#1088)
Deven Patela304ded5002c
diff --git a/embedchain/embedchain.py b/embedchain/embedchain.pyindex 79b0a3718..d634f3eb7 100644--- a/embedchain/embedchain.py+++ b/embedchain/embedchain.py@@ -7,7 +7,9 @@ from typing import Any, Dict, List, Optional, Tuple, Unionfrom dotenv import load_dotenvfrom langchain.docstore.document import Document-from embedchain.cache import adapt, get_gptcache_session, gptcache_data_convert, gptcache_update_cache_callback+from embedchain.cache import (adapt, get_gptcache_session,+ gptcache_data_convert,+ gptcache_update_cache_callback)from embedchain.chunkers.base_chunker import BaseChunkerfrom embedchain.config import AddConfig, BaseLlmConfig, ChunkerConfigfrom embedchain.config.base_app_config import BaseAppConfig@@ -17,7 +19,8 @@ from embedchain.embedder.base import BaseEmbedderfrom embedchain.helpers.json_serializable import JSONSerializablefrom embedchain.llm.base import BaseLlmfrom embedchain.loaders.base_loader import BaseLoader-from embedchain.models.data_type import DataType, DirectDataType, IndirectDataType, SpecialDataType+from embedchain.models.data_type import (DataType, DirectDataType,+ IndirectDataType, SpecialDataType)from embedchain.telemetry.posthog import AnonymousTelemetryfrom embedchain.utils import detect_datatype, is_valid_json_stringfrom embedchain.vectordb.base import BaseVectorDBdiff --git a/embedchain/utils.py b/embedchain/utils.pyindex f60312d77..60cb32f95 100644--- a/embedchain/utils.py+++ b/embedchain/utils.py@@ -420,6 +420,8 @@ def validate_config(config_data):Optional("model"): Optional(str),Optional("deployment_name"): Optional(str),Optional("api_key"): str,+ Optional("title"): str,+ Optional("task_type"): str,},},Optional("embedding_model"): {@@ -428,6 +430,8 @@ def validate_config(config_data):Optional("model"): str,Optional("deployment_name"): str,Optional("api_key"): str,+ Optional("title"): str,+ Optional("task_type"): str,},},Optional("chunker"): {