Skip to content

need informations about viewer and download #2

@AlexCastroAlex

Description

@AlexCastroAlex

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 :
image

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 :
image

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions