Update modules/pmbl.py
Browse files- modules/pmbl.py +2 -2
modules/pmbl.py
CHANGED
@@ -124,8 +124,8 @@ class PMBL:
|
|
124 |
self.save_chat_history(prompt, response_text)
|
125 |
|
126 |
def calculate_context(self, system_prompt, formatted_history):
|
127 |
-
system_prompt_tokens = len(system_prompt) //
|
128 |
-
history_tokens = len(formatted_history) //
|
129 |
max_response_tokens = 1500
|
130 |
context_ceiling = 31690
|
131 |
|
|
|
124 |
self.save_chat_history(prompt, response_text)
|
125 |
|
126 |
def calculate_context(self, system_prompt, formatted_history):
|
127 |
+
system_prompt_tokens = len(system_prompt) // 3
|
128 |
+
history_tokens = len(formatted_history) // 2
|
129 |
max_response_tokens = 1500
|
130 |
context_ceiling = 31690
|
131 |
|