Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need informations about viewer and download #2

Open
AlexCastroAlex opened this issue Jul 23, 2024 · 1 comment
Open

need informations about viewer and download #2

AlexCastroAlex opened this issue Jul 23, 2024 · 1 comment

Comments

@AlexCastroAlex
Copy link

AlexCastroAlex commented Jul 23, 2024

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

@AlexCastroAlex AlexCastroAlex changed the title Issue viewer and download need informations about viewer and download Jul 23, 2024
@AviPeltz
Copy link

same window issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants