-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Hello,
I used your app which seems really awesome.
I managed to switch to Azure OpenAI.
Now i can generate python files in the "generated" folder.
I have had issues with the generated id so i switched to UUID :

I also had issues as python and were added to the python script so it produced errors.
The workaround was to add in system prompt :
" You MUST remove python and .
You MUST remove ```.
"
I don't know if it has impact on generated file.
Here's an exemple of generated file :
import cadquery as cq
import cadquery as cq
# Génération de la pièce principale avec une certaine forme et épaisseur uniforme de 3 mm
main_shape = (cq.Workplane("XY")
.rect(50, 50) # Exemple de forme, rectangle de 50mm par 50mm
.extrude(3)) # Épaisseur uniforme de 3 mm
# Rajout des attachements pour vis M4 sur le côté gauche
attachment_left = (cq.Workplane("XY")
.center(-25, 0)
.circle(2)
.extrude(3))
# Rajout des attachements pour vis M4 sur le côté droit
attachment_right = (cq.Workplane("XY")
.center(25, 0)
.circle(2)
.extrude(3))
# Combiner la pièce principale avec les attachements
obj = main_shape.union(attachment_left).union(attachment_right)And it worked fine as python files are generated :

When the response is sent to tesselate function, it seems that there is something that does not go well :

I have issues to view files as viewer has errors on startup :

And i don't know if STEP files are generated at same time as python files.
Any help would be appreciated.
Thanks in advance.
Regards