Spaces:
Running
Running
Update bin_public/app/chat_func.py
Browse files
bin_public/app/chat_func.py
CHANGED
@@ -365,7 +365,7 @@ def predict(
|
|
365 |
else:
|
366 |
max_token = max_token_all
|
367 |
|
368 |
-
if sum(all_token_counts) > max_token and should_check_token_count:
|
369 |
status_text = f"精简token中{all_token_counts}/{max_token}"
|
370 |
logging.info(status_text)
|
371 |
yield chatbot, history, status_text, all_token_counts
|
@@ -384,7 +384,7 @@ def predict(
|
|
384 |
)
|
385 |
for chatbot, history, status_text, all_token_counts in iter:
|
386 |
status_text = f"Token 达到上限,已自动降低Token计数至 {status_text}"
|
387 |
-
yield chatbot, history, status_text, all_token_counts
|
388 |
|
389 |
|
390 |
def retry(
|
|
|
365 |
else:
|
366 |
max_token = max_token_all
|
367 |
|
368 |
+
'''if sum(all_token_counts) > max_token and should_check_token_count:
|
369 |
status_text = f"精简token中{all_token_counts}/{max_token}"
|
370 |
logging.info(status_text)
|
371 |
yield chatbot, history, status_text, all_token_counts
|
|
|
384 |
)
|
385 |
for chatbot, history, status_text, all_token_counts in iter:
|
386 |
status_text = f"Token 达到上限,已自动降低Token计数至 {status_text}"
|
387 |
+
yield chatbot, history, status_text, all_token_counts'''
|
388 |
|
389 |
|
390 |
def retry(
|