From 1fd4ea10ef8777417aa03182c7445b6b8d8e0a56 Mon Sep 17 00:00:00 2001 From: earonesty Date: Wed, 13 Sep 2023 09:19:23 -0700 Subject: [PATCH] Update app.py --- 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 6923aec3e..e143e6ad0 100644 --- a/llama_cpp/server/app.py +++ b/llama_cpp/server/app.py @@ -23,6 +23,9 @@ 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."