Git Product home page Git Product logo

chatgptimp-console's Introduction

ChatGPTImp-Console

The AI Prototype will test/showcase a mobile application's ability to call and interact with an OpenAI/ChatGPT Model

Description:

The ChatGPT Console Interface is a C# program that provides a console interface for interacting with the OpenAI API using the text-davinci-003 model. The program allows users to enter a prompt and receive a response generated by the OpenAI API.

Functions Tested: Permission via Manifest / API Call / Return Content

What does the Prototype do?

This prototype works as a simple prompt and response chat client.

What are its problems?

The response cushion is not interactable. Cant adjust the training or token count at the moment.
Adjusting this would be easy, but not worth the effort for this prototype.

Prototype has a very long wait time without any indication of what is happening. The type is fed into a dynamic and returned as a string. The response is a completed JSON opposed to a set of partial JSON set. Perhaps I can Adjust this.

What from it can I transfer?

The whole API calls. The GPT returns content that I would need for the

Sample Prompt Given to it: Create a C# Black Jack game Results: It works! I created a 2nd project in the repository that holds the game. The first response was limited by input tokens, but after making adjustments, the second one worked great!

Description:

The ChatGPT Console Interface is a C# program that provides a console interface for interacting with the OpenAI API using the text-davinci-003 model. The program allows users to enter a prompt and receive a response generated by the OpenAI API.

Dependencies:

.NET Core SDK 2.2 or later and Newtonsoft.Json library for JSON serialization/deserialization

Usage:

Obtain an OpenAI API key from the OpenAI website. Clone the repository or download the source code and extract the files. Open the project in an IDE such as Visual Studio. In the Main method of the program, replace "YOUR API HERE" with your OpenAI API key. Build and run the program. Enter a prompt at the console prompt and press enter. The program will send the prompt to the OpenAI API and display the generated response. Program Structure: The program consists of two methods: Main and API.

The Main method is the entry point of the program and contains the console interface. It prompts the user for input, calls the API method to send the input to the OpenAI API, and displays the generated response to the console.

The API method takes a prompt and an API key as input parameters and returns a string response generated by the OpenAI API. It sends an HTTP POST request to the OpenAI API endpoint, passing the prompt and other parameters such as the API key, model type, max_tokens and temperature. The API response is then read and deserialized from JSON format into a dynamic object, and the first choice of text is returned.

Limitations:

The program is dependent on an active internet connection to communicate with the OpenAI API. The program may generate responses that are inappropriate or offensive, depending on the nature of the prompt and the training data of the text-davinci-003 model. The program has a limited capacity for handling large amounts of input or generating long responses, as determined by the max_tokens parameter. The program may be subject to rate limits imposed by the OpenAI API, depending on the usage of the API key.

chatgptimp-console's People

Contributors

ayersdecker avatar

Watchers

 avatar  avatar

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.