mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-27 09:46:24 +02:00
update cluade token count
This commit is contained in:
parent
587e4f4f9c
commit
821e4bbdf0
1 changed files with 1 additions and 1 deletions
|
|
@ -421,7 +421,7 @@ def count_message_tokens(messages, model="gpt-3.5-turbo-0125"):
|
|||
"""Return the number of tokens used by a list of messages."""
|
||||
if "claude" in model:
|
||||
num_tokens = count_claude_message_tokens(messages, model)
|
||||
return num_tokens.input_tokens
|
||||
return num_tokens
|
||||
try:
|
||||
encoding = tiktoken.encoding_for_model(model)
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue