Code Monkey home page Code Monkey 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

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.