From 356ff8926e6d67770f6ff58f2eddf282025ed0e3 Mon Sep 17 00:00:00 2001 From: jinchihe Date: Tue, 19 Mar 2024 17:34:51 +0800 Subject: [PATCH] Correct bad URL in token_counter --- metagpt/utils/token_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/utils/token_counter.py b/metagpt/utils/token_counter.py index d639ccf32..0ba2daa89 100644 --- a/metagpt/utils/token_counter.py +++ b/metagpt/utils/token_counter.py @@ -229,7 +229,7 @@ def count_message_tokens(messages, model="gpt-3.5-turbo-0125"): else: raise NotImplementedError( f"num_tokens_from_messages() is not implemented for model {model}. " - f"See https://github.com/openai/openai-python/blob/main/chatml.md " + f"See https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken " f"for information on how messages are converted to tokens." ) num_tokens = 0