# Long empty response from chatgpt 3.5?

**URL:** <https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285>\
**Category:** API\
**Tags:** chatgpt, api\
**Created:** [June 24, 2023, 7:40am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285 "2023-06-24T07:40:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyro](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@montyro](https://community.openai.com/u/montyro)\
**Post date:** [June 24, 2023, 7:40am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285/1 "2023-06-24T07:40:04Z")

</div>

Often, Chat GPT-3.5 api starts returning me the markdown table I ask for but after like two names of the headers it starts returning a fully empty answer. It even takes more tokens than I set it up for (I have the limit set to 1k tokens and it takes full 2k completion tokens).

Is anyone else dealing with this issue? Any idea on how to fix it?

thanks!

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [June 24, 2023, 9:00am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285/2 "2023-06-24T09:00:12Z")

</div>

Welcome to the Forum! I have seen this happen on rare occasions when the servers are experiencing an issue, if you try it now does it continue? If so can you post the output you get and the code that makes the API along with any setup code it relies upon.

---

<div class="post-metadata">

**Author:** ![montyro](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@montyro](https://community.openai.com/u/montyro)\
**Post date:** [June 27, 2023, 9:25am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285/3 "2023-06-27T09:25:54Z")

</div>

Hi, thanks for the answer!

The output its something like:

content: '| Name | Description '… 117390 more characters

Sadly I can’t put the full input string here as we use it in our web app.

The code is something like this:

return fetch(chat completions link (cant include link on posts), {  
method: ‘POST’,  
headers: {  
‘Content-Type’: ‘application/json’,  
‘Authorization’: myapikey  
},  
body: JSON.stringify({  
‘model’: ‘gpt-3.5-turbo’,  
‘messages’: [{“role”:“system”,“content”:setup\_prompt},{“role”:“user”,“content”:prompt}],  
‘temperature’:0,  
‘max\_tokens’: 1500,  
})

The setup prompt is always the same. Only prompt changes. I have seen this happen more frequently when people make prompts using lots of caps (but I often want to keep the caps for names). I feel like this is some kind of bug where the connection is interrupted or something, but it exceeding the token cap makes it weird.

Thanks!

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [June 27, 2023, 10:51am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285/4 "2023-06-27T10:51:17Z")

</div>

Hi again,

Without seeing some examples of the exact prompt used, it’s hard to tell what might be causing it.

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [December 18, 2023, 9:12am UTC](https://community.openai.com/t/long-empty-response-from-chatgpt-3-5/277285/5 "2023-12-18T09:12:56Z")

</div>

Closed on December 18, 2023, 9:12am UTC


