# ChatBot token limit

**URL:** <https://community.deeplearning.ai/t/chatbot-token-limit/352236>\
**Category:** ChatGPT Prompt Engineering for Developers\
**Created:** [June 8, 2023, 12:17am UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236 "2023-06-08T00:17:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starsman](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Starsman](https://community.deeplearning.ai/u/Starsman)\
**Post date:** [June 8, 2023, 12:17am UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236/1 "2023-06-08T00:17:06Z")

</div>

How should the ChatBot track token usage? I imagine that the context of a long conversation could grow beyond the token limit. How can that be tracked and addressed?

---

<div class="post-metadata">

**Author:** ![gent.spah](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/gent.spah/32/136423_2.png) [@gent.spah](https://community.deeplearning.ai/u/gent.spah)\
**Post date:** [June 8, 2023, 7:19am UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236/2 "2023-06-08T07:19:03Z")

</div>

Here is a link I found [How do I check my token usage? | OpenAI Help Center](https://help.openai.com/en/articles/6614209-how-do-i-check-my-token-usage)

---

<div class="post-metadata">

**Author:** ![ShubhankarS](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/shubhankars/32/134130_2.png) [@ShubhankarS](https://community.deeplearning.ai/u/ShubhankarS)\
**Post date:** [June 8, 2023, 7:24am UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236/3 "2023-06-08T07:24:25Z")

</div>

Along wtht that every model has its own price plan and limits .

I have started learning gpt and implementing it on few projects but get struck with it.

---

<div class="post-metadata">

**Author:** ![Starsman](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@Starsman](https://community.deeplearning.ai/u/Starsman)\
**Post date:** [June 8, 2023, 12:18pm UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236/4 "2023-06-08T12:18:19Z")

</div>

Thanks. What I’m really wondering about is how to address that within the chat application. As you get close to the token limit, what should you do? I suspect, you should summarize to compress the tokens but I was wondering if there were recommended ways of approaching this. I’ve started the LangChain short course and that might help answer this question.

---

<div class="post-metadata">

**Author:** ![ShubhankarS](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/shubhankars/32/134130_2.png) [@ShubhankarS](https://community.deeplearning.ai/u/ShubhankarS)\
**Post date:** [June 8, 2023, 12:43pm UTC](https://community.deeplearning.ai/t/chatbot-token-limit/352236/5 "2023-06-08T12:43:14Z")

</div>

yes,compressing token or max\_token =limit.  
Here is link which I think will help you out

> **[Pricing](https://openai.com/pricing)**
>
> Simple and flexible. Only pay for what you use.
