Vartex39 commited on
Commit
8600932
·
1 Parent(s): 31be26a

Fix: lower max_tokens to 1500 for free API limit

Browse files
Files changed (1) hide show
  1. summarizer.py +1 -1
summarizer.py CHANGED
@@ -58,7 +58,7 @@ def summarize_text(text, mode, model_name="anthropic/claude-3-haiku", lang_mode=
58
  "messages": [
59
  {"role": "user", "content": build_prompt(text, mode,lang_mode, is_table)}
60
  ],
61
- "max_token": 2000
62
  }
63
 
64
  try:
 
58
  "messages": [
59
  {"role": "user", "content": build_prompt(text, mode,lang_mode, is_table)}
60
  ],
61
+ "max_token": 1500
62
  }
63
 
64
  try: