Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

feat: Default cache is memory

Clémence Lesné446a92441326
diff --git a/README.md b/README.md
index a5848a2..99d6775 100644
--- a/README.md
+++ b/README.md
@@ -259,13 +259,6 @@ database:
# endpoint: https://xxx.documents.azure.com:443
sqlite: {}
-cache:
- # mode: redis
- # redis:
- # host: claim-ai.redis.cache.windows.net
- # password: xxx
- memory: {}
-
resources:
public_url: "https://xxx.blob.core.windows.net/public"
diff --git a/helpers/config_models/cache.py b/helpers/config_models/cache.py
index d8b96b2..c64ff4c 100644
--- a/helpers/config_models/cache.py
+++ b/helpers/config_models/cache.py
@@ -23,7 +23,7 @@ class RedisModel(BaseModel, frozen=True):
class CacheModel(BaseModel, frozen=True):
- memory: Optional[MemoryModel] = None
+ memory: Optional[MemoryModel] = MemoryModel() # Object is fully defined by default
mode: ModeEnum = ModeEnum.MEMORY
redis: Optional[RedisModel] = None
diff --git a/helpers/config_models/root.py b/helpers/config_models/root.py
index af0fcd0..5bb0f68 100644
--- a/helpers/config_models/root.py
+++ b/helpers/config_models/root.py
@@ -29,7 +29,7 @@ class RootModel(BaseSettings):
ai_search: AiSearchModel
ai_translation: AiTranslationModel
api: ApiModel
- cache: CacheModel
+ cache: CacheModel = CacheModel() # Object is fully defined by default
cognitive_service: CognitiveServiceModel
communication_service: CommunicationServiceModel
content_safety: ContentSafetyModel