From 58a6e42cc06d6cf6ad2bcb46e6e1627687d9695f Mon Sep 17 00:00:00 2001 From: earonesty Date: Wed, 13 Sep 2023 23:01:34 -0400 Subject: [PATCH] Update app.py (#705) --- llama_cpp/server/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llama_cpp/server/app.py b/llama_cpp/server/app.py index 9f47c5f..053c308 100644 --- a/llama_cpp/server/app.py +++ b/llama_cpp/server/app.py @@ -26,6 +26,9 @@ import numpy as np import numpy.typing as npt +BaseSettings.model_config['protected_namespaces'] = () + + class Settings(BaseSettings): model: str = Field( description="The path to the model to use for generating completions."