# API call initialization responds blank text

**URL:** <https://community.openai.com/t/api-call-initialization-responds-blank-text/182049>\
**Category:** API\
**Created:** [April 28, 2023, 3:57am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049 "2023-04-28T03:57:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam.mirzad](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam.mirzad](https://community.openai.com/u/sam.mirzad)\
**Post date:** [April 28, 2023, 3:57am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/1 "2023-04-28T03:57:36Z")

</div>

I’m setting up an API call on [Bubble.io](http://Bubble.io) like this:

 ![image](https://us1.discourse-cdn.com/openai1/original/3X/5/d/5d3ae2514d80671498dcc3d04f15d368d95a61f0.png)

but the response id blank  
{  
“id”: “cmpl-7A9VKEFgj5zlEUgp8oTEEisxrP5cW”,  
“object”: “text\_completion”,  
“created”: 1682654170,  
“model”: “text-davinci-003”,  
“choices”: [  
{  
“text”: “”,  
“index”: 0,  
“logprobs”: null,  
“finish\_reason”: “stop”  
}  
],  
“usage”: {  
“prompt\_tokens”: 147,  
“total\_tokens”: 147  
}  
}  
can someone help me understand where the problem is?

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [April 28, 2023, 3:59am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/2 "2023-04-28T03:59:18Z")

</div>

The model is starting with “\n” but its a stop parameter.

Try removing the stop and seeing what it responds with.  
Afterwards, we can figure out why it wants to add a “\n”

---

<div class="post-metadata">

**Author:** ![sam.mirzad](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam.mirzad](https://community.openai.com/u/sam.mirzad)\
**Post date:** [April 28, 2023, 4:02am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/3 "2023-04-28T04:02:08Z")

</div>

I have removed both \n and also one by one, still no response

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [April 28, 2023, 4:04am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/4 "2023-04-28T04:04:30Z")

</div>

When the “finish\_reason” is “stop”, it can mean that it was told to stop based on your stop parameter

When you removed the stop:“\n”, does it still say the same?

---

<div class="post-metadata">

**Author:** ![sam.mirzad](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam.mirzad](https://community.openai.com/u/sam.mirzad)\
**Post date:** [April 28, 2023, 4:07am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/5 "2023-04-28T04:07:11Z")

</div>

Yes, i have removed both \n still no response with same reason!  
 ![image](https://us1.discourse-cdn.com/openai1/original/3X/3/9/394716c21ef7899fe223ed6282c2bfd9ba99f2be.png)

---

<div class="post-metadata">

**Author:** ![sam.mirzad](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam.mirzad](https://community.openai.com/u/sam.mirzad)\
**Post date:** [April 28, 2023, 4:09am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/6 "2023-04-28T04:09:28Z")

</div>

I have removed both \n but still same empty response with same reason!

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [April 28, 2023, 4:11am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/7 "2023-04-28T04:11:11Z")

</div>

What happens if you were to change your prompt to “Say hello”?

---

<div class="post-metadata">

**Author:** ![sam.mirzad](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@sam.mirzad](https://community.openai.com/u/sam.mirzad)\
**Post date:** [April 28, 2023, 4:21am UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/8 "2023-04-28T04:21:44Z")

</div>

I did that, still no response. This is frustrating

---

<div class="post-metadata">

**Author:** ![anon10827405](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon10827405](https://community.openai.com/u/anon10827405)\
**Post date:** [April 28, 2023, 12:50pm UTC](https://community.openai.com/t/api-call-initialization-responds-blank-text/182049/9 "2023-04-28T12:50:45Z")

</div>

Sorry, this new forum update has completely muddied my notifications.

Based on

> “prompt\_tokens”: 147,

It looks like your prompt is going through and being read.

A couple of your parameters are redundant, or could possibly be the culprit.

Temperature, top\_p, n, stream, logprobs.  
All of these should be removed from your request as they are already set as default.

I’m not familiar with bubble. Let’s eliminate it for now?

Since you’re using Davinci, you can use the [playground](https://platform.openai.com/playground) and copy the actual request made to the server by clicking “View Code” in the top right corner.
