Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
docs(tutorial): remove the huggingface related code in tutorial to avoid rate limit (#1198)
DavdGao69193a2e0b03
diff --git a/docs/tutorial/en/src/task_prompt.py b/docs/tutorial/en/src/task_prompt.pyindex 047e35611..081f965f9 100644--- a/docs/tutorial/en/src/task_prompt.py+++ b/docs/tutorial/en/src/task_prompt.py@@ -266,10 +266,6 @@ async def run_token_counter() -> int:return await token_counter.count(formatted_message)-n_tokens = asyncio.run(run_token_counter())-print("The tokens in the formatted messages are: ", n_tokens)--# %%# Then we set the maximum token limit to 20 tokens less than the total number of tokens and run the formatter.#diff --git a/docs/tutorial/zh_CN/src/task_prompt.py b/docs/tutorial/zh_CN/src/task_prompt.pyindex 3d5cc9dfe..9d353b9bd 100644--- a/docs/tutorial/zh_CN/src/task_prompt.py+++ b/docs/tutorial/zh_CN/src/task_prompt.py@@ -266,10 +266,6 @@ async def run_token_counter() -> int:return await token_counter.count(formatted_message)-n_tokens = asyncio.run(run_token_counter())-print("格式化消息中的 token 数量为:", n_tokens)--# %%# 然后我们将最大 token 限制设置为比总 token 数少 20 个,并运行格式化器。#