ChatConfig.py 507 B

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