Skip to content

Commit fb1f2d7

Browse files
authored
add MSG_LIST_LIMIT env variable tuner
1 parent 71524dd commit fb1f2d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
chat_language = os.getenv("INIT_LANGUAGE", default = "zh")
44

5-
MSG_LIST_LIMIT = 20
5+
MSG_LIST_LIMIT = int(os.getenv("MSG_LIST_LIMIT", default = "20"))
66
LANGUAGE_TABLE = {
77
"zh": "哈囉!",
88
"en": "Hello!"

0 commit comments

Comments
 (0)