Skip to content

Commit d520d2d

Browse files
committed
Mark system_prompt config as not usable
1 parent 25fd2b8 commit d520d2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ols/app/models/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,13 @@ def __init__(
995995
self.user_data_collection = UserDataCollection(
996996
**data.get("user_data_collection", {})
997997
)
998+
999+
if self.system_prompt is not None:
1000+
raise InvalidConfigurationError(
1001+
"The `system_prompt` is not meant for direct configuration. "
1002+
"To get the system prompt, please use the `system_prompt_path` attribute."
1003+
)
1004+
9981005
# read file containing system prompt
9991006
# if not specified, the prompt will remain None, which will be handled
10001007
# by system prompt infrastructure

0 commit comments

Comments
 (0)