From 99a870bcee09152fdfd9d70e67d6aa423567e3f9 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 3 Dec 2023 19:12:40 +0100 Subject: [PATCH] Disable mypy on a file that is specific to local mode Otherwise it fails because of missing dependencies in CICD --- private_gpt/components/llm/prompt/prompt_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private_gpt/components/llm/prompt/prompt_helper.py b/private_gpt/components/llm/prompt/prompt_helper.py index b5f3fe5f..bd910175 100644 --- a/private_gpt/components/llm/prompt/prompt_helper.py +++ b/private_gpt/components/llm/prompt/prompt_helper.py @@ -1,3 +1,6 @@ +# Ignoring the mypy check in this file, given that this file is imported only if +# running in local mode (and therefore the llama-cpp-python library is installed). +# type: ignore """Helper to get your llama_index messages correctly serialized into a prompt. This set of classes and functions is used to format a series of