# Full code check without 'continue' option

**URL:** <https://community.openai.com/t/full-code-check-without-continue-option/26231>\
**Category:** API\
**Tags:** codex\
**Created:** [December 24, 2022, 4:11pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231 "2022-12-24T16:11:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![faucet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/faucet/32/7332_2.png) [@faucet](https://community.openai.com/u/faucet)\
**Post date:** [December 24, 2022, 4:11pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/1 "2022-12-24T16:11:55Z")

</div>

I have a code with over 1000 lines that I would like ChatGPT, or Playground to clean and improve. Unfortunately, every section is cut off and just “continue” carries on from uncompleted responses. I need a whole complete response, can this be done in the free beta version with a workaround or do I need to pay Davinci tokens? Or should I be using the Playground for this instead of ChatGPT?

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [December 24, 2022, 4:24pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/2 "2022-12-24T16:24:52Z")

</div>

Welcome to the community!

ChatGPT is more of a conversational model, I believe.

You might want to actually use Codex in the Playground…

> **[OpenAI Codex](https://openai.com/blog/openai-codex/)**
>
> We’ve created an improved version of OpenAI Codex, our AI system that translates natural language to code, and we are releasing it through our API in private beta starting today. Codex is the model that powers GitHub Copilot, which we built and...

Hope this helps!

---

<div class="post-metadata">

**Author:** ![faucet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/faucet/32/7332_2.png) [@faucet](https://community.openai.com/u/faucet)\
**Post date:** [December 24, 2022, 5:40pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/3 "2022-12-24T17:40:25Z")

</div>

I tried both the ChatGPT and the Playround, both stop after a few seconds probably due to the token size:

**15,896** tokens in prompt  
Up to 1,695 tokens in response

This model can only process a maximum of 4,001 tokens in a single request, please reduce your prompt or response length.  
[Learn more about pricing](https://openai.com/api/pricing)

Looks like I may have to increase the max. token size in a single request, that’s why I am asking if the pricing model would allow more tokens in a single request if I pay for it. Or would it still be the same outcome because the same model is now for trial in beta? I just dont want to waste my money if there is a workaround during this trial period, like the “continue” command in ChatGPT (but which breaks lines at invervals and would not provide the complete response due to missing data).

Thanks for trying Paul, but I need further details on how to solve larger coding responses in a single response.

Any other solutions from anyone?

---

<div class="post-metadata">

**Author:** ![PaulBellow](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/paulbellow/32/597962_2.png) [@PaulBellow](https://community.openai.com/u/PaulBellow)\
**Post date:** [December 24, 2022, 5:54pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/4 "2022-12-24T17:54:19Z")

</div>

Ah, I see. No, the token limits are hard limits due to hardware/compute requirements.

Only thing I can think of is breaking it up, but then it won’t see the whole code. Not sure if summarizing it would help either as it’s code and not words.

Good luck on your quest!

---

<div class="post-metadata">

**Author:** ![faucet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/faucet/32/7332_2.png) [@faucet](https://community.openai.com/u/faucet)\
**Post date:** [December 24, 2022, 11:03pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/5 "2022-12-24T23:03:34Z")

</div>

so you mean even if I paid and after the beta phase, it would still be limited to 4000 tokens? Or is the limitation just because of free beta?

Is there no solution to having it check all the code in one go?

---

<div class="post-metadata">

**Author:** ![raymonddavey](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/raymonddavey/32/14125_2.png) [@raymonddavey](https://community.openai.com/u/raymonddavey)\
**Post date:** [December 25, 2022, 2:36am UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/6 "2022-12-25T02:36:40Z")

</div>

“faucet”, you are correct. The models have upper limits for tokens. As far as I know, the token limit for any request needs to include the completion AND the tokens used in the prompt.

It would probably be best to try and refactor one function at a time using Codex.

Depending on the language, you may be better using a refactoring tool (Eg C# has Resharper or CodeRush)

---

<div class="post-metadata">

**Author:** ![faucet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/faucet/32/7332_2.png) [@faucet](https://community.openai.com/u/faucet)\
**Post date:** [December 25, 2022, 8:28pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/7 "2022-12-25T20:28:39Z")

</div>

Ok so it looks like I have no choice, other than breaking it down to several functions. Though my coding knowledge is very basic and I wouldn’t know if everything in the interoperability is considered, when analysing just several parts individually.

The language would be Java. Could you please also recommended something thats free to test the full code? And maybe a community that I could turn to (Telegram, IRC, discord, etc)?

Many thanks!

---

<div class="post-metadata">

**Author:** ![raymonddavey](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/raymonddavey/32/14125_2.png) [@raymonddavey](https://community.openai.com/u/raymonddavey)\
**Post date:** [December 25, 2022, 8:36pm UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/8 "2022-12-25T20:36:20Z")

</div>

There are a few java wrappers.

> **[GitHub - TheoKanning/openai-java: OpenAI GPT-3 Api Client in Java](https://github.com/TheoKanning/openai-java)**
>
> OpenAI GPT-3 Api Client in Java. Contribute to TheoKanning/openai-java development by creating an account on GitHub.

> **[Gaiji](https://codeberg.org/qbinary/Gaiji)**
>
> Gaiji is a java library which allows the interaction with the OpenAI API. Mainly focusing on GPT3 and model fine tuning.

I haven’t tried either of these - but the first one seems quite active. It has updates from a few days ago.

---

<div class="post-metadata">

**Author:** ![curt.kennedy](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/curt.kennedy/32/709249_2.png) [@curt.kennedy](https://community.openai.com/u/curt.kennedy)\
**Post date:** [February 14, 2024, 12:01am UTC](https://community.openai.com/t/full-code-check-without-continue-option/26231/9 "2024-02-14T00:01:24Z")

</div>


