enmerk4r / GHPT

GHPT is a Grasshopper plugin takes a prompt and uses ChatGPT to generate a GH script
https://www.food4rhino.com/en/app/ghpt
MIT License
66 stars 10 forks source link

fix prompt errors and chain of thought #12

Closed samgregson closed 9 months ago

samgregson commented 10 months ago

Allow LLM to process reasoning (chain of thought)

Currently the llm generates text continuing from // JSON: This means that chain of thought is not properly implemented as the llm is not given the opportunity to generate 'thought'.

Fix json errors and formatting

There are syntax / formatting errors which from quick testing tend to confused the llm in terms of the required format.

Note

I have other suggestions as outlined in: https://discourse.mcneel.com/t/ghpt-generates-a-grasshopper-script-from-a-prompt-with-chat-gpt/162039/22?u=samgregson

However here I have implemented only those suggestions which seem like simple mistakes and leave suggestions for separate PRs