Sergidev commited on
Commit
fc56b69
1 Parent(s): 3501e29

Update modules/pmbl.py

Browse files
Files changed (1) hide show
  1. 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) // 6
128
- history_tokens = len(formatted_history) // 12
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