#Empty text from the response

17 messages · Page 1 of 1 (latest)

coral siren
#

Hey guys I made a little game where the api generates a little story and gives the player always 3 chances. Now it randomly happen that the response is empty it looks like this (image attached).

Any ideas why and how I can prevent that when doing the api call?

ivory peak
#

What is the prompt and stop sequences that you're sending it? Empty responses are usually an issue with the prompt, the model did not find anything to autocomplete, or it came across one of the stop sequences

coral siren
#

I dont really provide a stop squences

#

At the end the code does this

API Request with start prompt => let the player choose => send the start prompt and the response from the start prompt with the info what the user selected => and this in a loop until the game is ending

#

I have the feeling that the prompt creates a own stop squences

#

Could my issue get solved when I provide a unique own stop sequence that never get triggered? And is this okay? And for what is the stop sequence ?

finite belfry
ivory peak
#

Generation:

#

and see what happens with that

fierce wyvern
#

Add a newline at the end of your prompt. It thinks you provided the completion. The new line will tell it you want it to do something

coral siren
coral siren
#

I now changed the tokens limit to 1200 and added a "Generation:" at the end in a new line. I see now if something happen again or if its "fixed" now thanks that you all replied :)

ivory peak
#

Awesome!

coral siren
#

after some days i now didnt saw the issue anymore so i wohld guess its fixed