Coder Social home page Coder Social logo

aecoder-br / dynamo-chatgpt Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 223 KB

Custom Node developed to facilitate the use of the ChatGPT API for chat completion within Dynamo

Home Page: https://www.aecoder.com.br

License: MIT License

Python 100.00%
autodesk autodesk-revit chatgpt chatgpt-api dynamo dynamobim ironpython openai openai-api openai-chatgpt python revit revit-addins

dynamo-chatgpt's Introduction

Dynamo ChatGPT

Custom Node developed to facilitate the use of the ChatGPT API for chat completion within Dynamo

Development

Prerequisites

Setup & Run

  • Search for DynamoChatGPT in the Dynamo package search and install the package as shown in the image below

  • Setup the inputs:
    • prompt (required): The prompt (message) you want to send to ChatGPT

    • api_key (required): Your OpenAI API Key

    • organization_id (optional): Your Organization ID

    • project_id (optional): Your Project ID, under Project > General

    • model (required): ID of the model to use. Learn more here!

      If you have ChatGPT Plus, we recommend using the gpt-4o model or newer, otherwise, use gpt-3.5-turbo or the latest free version

    • temperature (optional): OpenAI description:

      What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both.

    • max_tokens (optional): OpenAI description:

      The maximum number of tokens that can be generated in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length.

      Learn more here!

    • top_p (optional): OpenAI description:

      An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both.

    • frequency_penalty (optional): OpenAI description:

      Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

      Learn more here!

    • presence_penalty (optional): OpenAI description:

      Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

      Learn more here!

    • clear_history (optional): Set true, if you want to clear the chat history before sending the request, otherwise set false

      This script stores the conversation history in %appdata%\AECOder\dynamochatgpt\history.json

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for more details.

dynamo-chatgpt's People

Contributors

mayconrfreitas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

raubizar

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.