How do you access chat GPT4? The link from its page gives me GPT3.5.
On Fri, 7 Apr 2023 at 07:28, jeremy ardley via Discuss <
discuss@lists.openscad.org> wrote:
---------- Forwarded message ----------
From: jeremy ardley jeremy@ardley.org
To: discuss@lists.openscad.org
Cc:
Bcc:
Date: Fri, 7 Apr 2023 14:27:40 +0800
Subject: [OpenSCAD] Re: chat-gpt
On 7/4/23 13:23, Terry Pinnell wrote:
I found it very easy to access and use. It’s possible you hit an
especially busy time. So far I’ve not used it for OpenSCAD, but for
Arduino code and more general questions. Such as suggesting a couple
of hikes in Joshua Tree to my specification.
Overall I’m somewhat in awe of its ability.
--
Terry
I've been using ChatGPT 3.5 and 4 along with Github CodePilot for about
2 months now.
My brief experiment with OpenSCAD code says it's training is pretty
deficient compared to say Python or javascript. It will probably improve
but for now you have to ask questions in very small chunks. Also, 3.5 is
not very good. You get better results with 4.
If you say "Give me an OpenSCAD script to generate an M6 hex head bolt
with 25 mm shank and 3mm thick head" it will return a flat hex head of
the right thickness and a rod for the threaded part without any threads.
// M6 Hex Head Bolt
// Shank Length: 25mm
// Head Thickness: 4mm
// Parameters
shank_diameter = 6;
shank_length = 25;
head_thickness = 4;
hex_size = 10; // Across flats for M6
module hex_head() {
cylinder(d1=hex_size, d2=hex_size, h=head_thickness, $fn=6);
}
module bolt_shank() {
cylinder(d=shank_diameter, h=shank_length, $fn=32);
}
// Main Assembly
translate([0, 0, 0]) {
hex_head();
}
translate([0, 0, head_thickness]) {
bolt_shank();
}
You can then progress this slowly by suggesting using a thread library.
However, you quickly run into the limitations of GPT4 that is it
deliberately outputs very slowly, you only get 25 prompts per 4 hours,
and often it won't finish outputting a script. This requires you to ask
questions with short answers to increment your solution and try to stop
it outputting the entire script again.
e.g.
"give me just the script necessary to add threads from a thread library
to the shank and show me where to insert this"
So it works, but it will take some effort and patience.
It does know about https://github.com/openscad/MCAD but it's a couple of
years out of date on what's there and often with other links they have
already faded.
Jeremy
---------- Forwarded message ----------
From: jeremy ardley via Discuss discuss@lists.openscad.org
To: discuss@lists.openscad.org
Cc: jeremy ardley jeremy@ardley.org
Bcc:
Date: Fri, 7 Apr 2023 14:27:40 +0800
Subject: [OpenSCAD] Re: chat-gpt
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On 7/4/23 15:26, nop head wrote:
How do you access chat GPT4? The link from its page gives me GPT3.5.
On Fri, 7 Apr 2023 at 07:28, jeremy ardley via Discuss
discuss@lists.openscad.org wrote:
You pay them USD $20 per month to get GPT4
You also get GPT3.5 in that subscription. If you don't have a
subscription you are very limited in response and amount of queries allowed.
You also can use Visual Studio Code with the CodeGPT plugin (I think
3.5) and pay in the fractions of cents per query. It probably knows
about OpenSCAD and certainly knows about Python to assist OpenSCAD.
For cost reasons I have cancelled my GPT subscription and gone to the
option of VSCode with CodeGPT plugin
Jeremy