Skip to content

Commit

Permalink
fix: update naas_chat_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr authored Sep 27, 2023
1 parent 8559d7f commit 1c93cc3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions naas_drivers/tools/naas_chat_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ def check_tokens(self, prompt, model, limit=0.2):
Tokens: {prompt_tokens} (limit recommended: {int(limit*100)}% -> {recommended_limit})"""
)
else:
print(
f"""
✅ System prompt tokens count OK: {prompt_tokens} (limit: {int(limit*100)}% -> {recommended_limit})
"""
)
print(f"✅ System prompt tokens count OK: {prompt_tokens} (limit: {int(limit*100)}% -> {recommended_limit})")
return prompt_tokens, max_tokens

def create_plugin(
Expand Down

0 comments on commit 1c93cc3

Please sign in to comment.