Linebreaks are removed since the new Playground

@openai Thanks for fixing btw

1 Like

Great to hear that !
Thanks OpenAI !

Yes it’s fixed. Thanks to everybody sharing useful information

1 Like

Copying from the assistant role and pasting to the forum still gives double-line breaks. Hard refresh on the chat playground URL.

Sure, I’d be happy to help! Here’s a simple Python script that simulates the rolling of a six-sided die:


import random


def roll_dice():

    return random.randint(1, 6)


def main():

    print("Rolling the dice...")

    result = roll_dice()

    print(f"You rolled a {result}!")


if __name__ == "__main__":

    main()

Explanation:

  1. import random: This imports the random module, which contains the randint function used to generate random numbers…

Sorry about the bug everyone. _j, I can’t reproduce your latest. Tried asking for code in the playground, and when I paste the assistant message text into a text editor, I’m not getting any extra newlines.

Here’s what I get:

Certainly! Below is a simple Python script that simulates rolling a six-sided die:

import random

def roll_die():
    return random.randint(1, 6)

# Simulate rolling the die
result = roll_die()
print(f"You rolled a {result}")
In this script:

We import the random module to use its randint function, which generates a random integer.
The roll_die function generates a random number between 1 and 6, simulating a six-sided die roll.
We call the roll_die function and print the result.
You can run this script and it will simulate a single roll of a six-sided die and display the result.
2 Likes

Thanks for looking into this.

Firefox 126, Windows 10, just did a clear cookies and local storage on a new browser window, forcing me to log in again to playground.openai.com. The site remembers “chat” and redirects.

The first annoyance still that selecting the text box range with a mouse cursor, it is immediately unselected. It takes another selection attempt to stay highlighted.
(Whether the idea was to copy and paste externally, or to duplicate lines.)

However paste does look fixed!


Remaining annoyance: load a preset already shared. Press share. There is no share link - it acts as if the preset has been modified and needs to be re-saved:

image


UI bug: Kubuntu 24, Firefox 125.0.2. Start typing into the system box, and still even at the second line of input, the right settings flex container is resizing itself every character of input. Viewport 1112 x 833px.


fixed so far: a backspace removes all the linefeeds. Presets damaged with no system message.

I am having a problem on Ubuntu 16 that no line breaks are displayed in the ChatGPT 4o output, even when I ask for them. I am having the problem on both Firefox 128 (built from source using the defaults) and also with Chrome. When I paste into the vi editor, the problems remain. I tried disabling “wrap long lines” in Firefox about:config, but it did not fix the problem. I don’t have this problem on MacOS… I will investigate to see if this problem is platform-specific or if a change has ruined ChatGPT’s output formatting, which used to look great.

I am using the Assistant to produce output to be used in Make and Zapier, but no matter how I phrase the instructions I don’t get extra line breaks, just a “wall of text”.

Is it because the output is “text” (not that there is any other option).

Have tried HTML, and text formatting with \n\n to try and get ANY line breaks. It simply refuses and only outputs a wall of text. Surely being able to include line breaks is a necessity?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.