Giter VIP home page Giter VIP logo

ghpt's Introduction

GHPT

This project sets out to find a way to leverage the power of ChatGPT to create Grasshopper definitions. It was developed at the AEC Tech Seattle Hackathon 2023 hosted by Thornton Tomasetti CORE studio and LMN

0 1 4_README

Team

Installation

Your options for installing GHPT are as follows:

  • Install the plug-in from Food4Rhino.
  • Install the GHPT Yak package from Rhino's Package Manager.
  • Build from source.

Token Configuration

Once GhPT is downloaded and installed, the OpenAI token key needs to be set up through the pop-up Token Configuration Window. To use the OpenAI API, you need to provide an API key and specify a GPT model. 0 1 4_README_API

You can sign up for OpenAI API on this page. Once you signed up and logged in, open this page and select Create new secret key. You can then copy the key by clicking on the green text Copy, make sure to save this key somewhere else as you will not be able to access it again. image

Select your model from the dropdown menu

image

Paste the key in the GPT Token box.

image

Go to this page to check for your access to different GPT models (currently we are using the more advanced model GPT-4 that has limited access) but model GPT-3.5 should also work well. gpt model

How to use

Creating a component and initiating a request to the ChatGPT API can be accomplished via shortcut; Prompts can be written directly into the grasshopper component search function.

image

To take advantage of this functionality, double click an empty space on the canvas and type a prompt in the following format:

GHPT = <your prompt goes here>

After allowing the module some time to think, an organized node graph will appear. Additionally, an "Advice" text panel will be create to display advice/feedback from GPT.

In the event that a prompt is too complex, the module will display an error message.

Prompt guide - add these text snippet at the end of your request for more specific instructions to GPT

  • "if there are questions, put them in the Advice section" -> if your prompt is too complex for GPT, this allow GPT to ask for clarification
  • "prefer Circle over Circle CNR" -> instruct GPT to prefer a component over another one with similar name/function
  • "be specific" -> more clarified

ghpt's People

Contributors

clicketyclackety avatar enmerk4r avatar jkamm avatar jackdang2803 avatar samgregson avatar diminnovation avatar ryanerbert avatar

Stargazers

Hamidreza Shahriari avatar Karen Kuo avatar  avatar Onaxis007 avatar  avatar MateuszMazurek avatar Onur Göztepe avatar  avatar Carlos Calderon avatar émilien avatar cmarhoover avatar  avatar tansuozhe02 avatar  avatar Yacine Zahidi avatar  avatar  avatar Thipok Cholsaipant avatar Antoine Vercoutère avatar Chris K  Chan avatar Emre avatar  avatar  avatar KOKI MATSUO avatar Conlan Kreher avatar WeiLan avatar Pavel Furtsev avatar  avatar  avatar  avatar Woosung Nam avatar  avatar Jeffrey Russell avatar Keerthana  avatar Elton Gjata avatar Weston Norwood avatar Alexander Radne avatar Erik Forsberg avatar Konrad Zaremba avatar Colin Matthews avatar Robin Godwyll avatar SPACE, PLANETS & MOONS ARCHITECTURE avatar Emil Poulsen avatar Kaushik avatar Giacomo d'Antonio avatar Lorenzo avatar Tristan Morgan avatar Morteza Karimi avatar  avatar  avatar Joel López avatar Lucas Epp avatar Ahmed Abuzuraiq avatar Jack Walker avatar  avatar Shasan avatar Mathias Sønderskov Schaltz avatar Chuck Driesler avatar renato cruz avatar Nathan Barnes avatar Akihito Yokota avatar Lucas Becker avatar Tommaso Turchi avatar hrntsm avatar  avatar  avatar

Watchers

 avatar Elton Gjata avatar Konrad Zaremba avatar Kostas Georgiou avatar  avatar Nathan Barnes avatar

ghpt's Issues

Errors

I'm trying this component for the first time but I'm constantly getting errors.
Now I've tried the simple tasks that worked in the previous issue but I'm getting the erros below;
How can I solve this?
2023-06-28 16_57_34-Grasshopper - unnamed

Typo or bad connexion ?

Hello there, your explanation included in the plugin mentions putting the model as follow "gpt-4".
But I got an error message as such :Error: NotFound Not Found {
"error": {
"message": "The model: gpt-4 does not exist",
"type": "invalid_request_error",
"param": null,
"code": "model_not_found"
}
}

There is also no way right now to correct that problem, except maybe for uninstalling the all thing.

Instructions to build the .gh file from source

hello everybody, how can I build the .gh file from source so that I can install it on Rhino7?
I know there are ways to install it from Rhino itself but I can't do that and want to install it from source.
any help would be much appreciated.

Get API key from environment variable

Feature request, not a bug report.

Is it possible to attempt to get the environment variable, OPENAI_API_KEY from system env vars? This would help us keep our API keys a little more secure, rather than handing them out to users. If found, the config would use the API key from the env var and it would note this in the config UI somehow. It would still give the user the opportunity to use their own API key instead.

Always return "Value cannot be null. Parameter name: source"

First of all, thank your team for developing this wonderful component. I am very excited.

I'm trying it out, but it always gives me an "Value cannot be null. Parameter name: source" in an advise panel.
Is there something wrong with my input?

Token and model were set according to README.
The model is "gpt-3.5-turbo".

Screenshot 2023-06-26 at 9 51 24

environment

  • win11
  • ghpt v1.2(via package manager)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.