ChatGPT freezing during code generation

That seems like a great tool. Honestly, since I was upgraded to gpt-4 (8K context window) and got into the habit of feeding smaller functions to the model, I’ve not had a single instance of freezing. Although now I sometimes get a weird problem where if the code is a bit long, the model, when listing it, will “hiccup” and begin repeating it from the top instead of finishing it. Very annoying, but rarely happens.

I think someone at OpenAI recognized the problem because now when it hiccups, it resumes from where it broke off.

But, I’m going to look into this service you posted. It looks like it might be a solution for when you need to work with fairly large chunks of code at a time.

    public override Graphic Graphic
    {
        get
        {
            int sum = innerContainer.Sum(t => t.stackCount);
            if (sum > 0)
            {
                string texturePath = $"Things/Building/ServerRack/ServerRack_fill_{sum:D2}";
                if (Rotation == Rot4.South)
                {
                    Graphic _graphic = GraphicDatabase.Get<Graphic_Single>(
                        texturePath,
                        ShaderDatabase.Cutout,
                        new UnityEngine.Vector2(2.6f, 2.6f),
                        UnityEngine.Color.white
                    );
                    GraphicData graphicData = new GraphicData();
                    graphicData.drawSize = new UnityEngine.Vector2(2.6f, 2.6f);
                    graphicData.drawOffset = new UnityEngine.Vector3(0f, 0f, 0.5f);
                    graphicData.shadowData = new ShadowData
                    {
                        volume = new UnityEngine.Vector3(0.3f, 0.5f, 0.3f),
                        offset = new UnityEngine.Vector3(0f, 0f, -0.23f)
                    };

                    _graphic.data = graphicData;

                    return _graphic;
                }
                else
                {
                    return base.Graphic;
                }
            }
            else
            {
                return base.Graphic;
            }
        }
    }

create for each ServerRack fill the Graphic static once 1-12
and then use them, so it does not create them at runtime

Thats my prompt and GPT-4 always freezes at the generation at the same point over multiple chats. Cuts off with this
Graphic graphic = GraphicDatabase.Get

Closing this topic because OP’s original issues are not related to the current one’s.