Files
t6_mem0/embedchain/config/ChatConfig.py
2023-07-10 23:07:19 +05:30

14 lines
507 B
Python

from embedchain.config.QueryConfig import QueryConfig
class ChatConfig(QueryConfig):
"""
Config for the `chat` method, inherits from `QueryConfig`.
"""
def __init__(self, stream: bool = False):
"""
Initializes the QueryConfig instance.
:param stream: Optional. Control if response is streamed back to the user
:raises ValueError: If the template is not valid as template should contain $context and $query
"""
super().__init__(stream=stream)