# Node-red-contrib-custom-chatgpt4o Range Error

**URL:** <https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181>\
**Category:** General\
**Created:** [22 September 2024 09:14 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181 "2024-09-22T09:14:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![imperium85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/imperium85/32/83662_2.png) [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Post date:** [22 September 2024 09:14 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/1 "2024-09-22T09:14:19Z")

</div>

Hi People,  
I'm experimenting with Chatgpt in Flow Fuse. I have a Text\_input for asking a question and ui-text to desplay the resoult. In the debug window I see the reply but in the ui text node I'm getting this error and node-red crashes:

`RangeError: Maximum call stack size exceeded`

I tried to add delay node to restect the msg/sec but doesn't seem to do anything.  
Any idea what I could do?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/1147ac7bc92be876c870f5ec5015eeb8292faea7.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 September 2024 09:17 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/2 "2024-09-22T09:17:30Z")

</div>

> [@imperium85](#):
>
> node-red crashes:
> 
> `RangeError: Maximum call stack size exceeded`

Are there more details than this?

Do you have a FlowFuse cloud instance (or are you running FlowFuse yourself)?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 September 2024 09:23 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/3 "2024-09-22T09:23:24Z")

</div>

Additionally, `node-red-contrib-custom-chatgpt4o` is a fork of [node-red-contrib-custom-chatgpt](https://flows.nodered.org/node/node-red-contrib-custom-chatgpt) - you might wish to try `node-red-contrib-custom-chatgpt` instead as you can actually contact the author since their repository has "issues" turned on.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 September 2024 09:25 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/4 "2024-09-22T09:25:15Z")

</div>

lastly, try disconnecting wires 1 at a time. See what exactly crashes it (my money is on the forked chatgpt node)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a64d21f4de74bf91c678a497114c9fe69bcbbef8.png)

---

<div class="post-metadata">

**Author:** ![imperium85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/imperium85/32/83662_2.png) [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Post date:** [22 September 2024 09:32 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/5 "2024-09-22T09:32:38Z")

</div>

> [@Steve-Mcl](#):
>
> node-red-contrib-custom-chatgpt

Thank you, Im on it, and i will report how it goes.

---

<div class="post-metadata">

**Author:** ![imperium85](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/imperium85/32/83662_2.png) [@imperium85](https://discourse.nodered.org/u/imperium85)\
**Post date:** [22 September 2024 09:49 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/6 "2024-09-22T09:49:42Z")

</div>

Brilliant, it works with the...

> [@Steve-Mcl](#):
>
> node-red-contrib-custom-chatgpt

THANK YOU!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 September 2024 09:56 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/7 "2024-09-22T09:56:58Z")

</div>

No worries.

Also, to help others avoid this, it would be cool if you could down vote [the bad package](https://flows.nodered.org/node/node-red-contrib-custom-chatgpt4o) please

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 October 2024 09:57 UTC](https://discourse.nodered.org/t/node-red-contrib-custom-chatgpt4o-range-error/91181/8 "2024-10-06T09:57:05Z")

</div>

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