Since the only usage of prompt is within LLMs, it is reasonable to keep it within the LLM module. This way, it would be easier to discover module, and make the code base less complicated. Changes: * Move prompt components into llms * Bump version 0.3.1 * Make pip install dependencies in eager mode --------- Co-authored-by: ian <ian@cinnamon.is>
26 lines
498 B
Python
26 lines
498 B
Python
# Disable telemetry with monkey patching
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
try:
|
|
import posthog
|
|
|
|
def capture(*args, **kwargs):
|
|
logger.info("posthog.capture called with args: %s, kwargs: %s", args, kwargs)
|
|
|
|
posthog.capture = capture
|
|
except ImportError:
|
|
pass
|
|
|
|
try:
|
|
import os
|
|
|
|
os.environ["HAYSTACK_TELEMETRY_ENABLED"] = "False"
|
|
import haystack.telemetry
|
|
|
|
haystack.telemetry.telemetry = None
|
|
except ImportError:
|
|
pass
|
|
|
|
__version__ = "0.3.1"
|