Skip to content

AERobert/Simpler-GPT-Playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simpler OpenAI Chat API Interface

This project provides a simple HTML interface for interacting with OpenAI's Chat API. It allows you to send requests, manage interactions, and adjust various parameters such as model, temperature, top_p, and max_tokens. You can also export and import your interactions and parameters in JSON format.

Features

  • Send requests to OpenAI Chat API
  • Manage interactions with user and assistant roles
  • Adjust model, temperature, top_p, and max_tokens parameters
  • Export and import interactions and parameters in JSON format
  • Store API key and other settings in local storage

How to use

  1. Download the simpler-playground.html file from this repository.
  2. Open the simpler-playground.html file in a modern web browser (e.g., Google Chrome, Mozilla Firefox, Microsoft Edge).
  3. Enter your OpenAI API key in the "API Key" field.
  4. Customize the model and other parameters as needed.
  5. Enter the role and user input for the first interaction.
  6. Click the "Submit" button to send the request and receive the assistant's response.
  7. Continue adding interactions as desired.
  8. Use the "Export" and "Import" buttons to save and load your interactions and parameters inJSON format.

Interface Sections

  • Interactions: This section displays a list of interactions between the user and the assistant. You can add new interactions by entering the role, user input, and assistant response.
  • Parameters: This section allows you to set the model, temperature, top_p, and max_tokens parameters for the API requests.
  • Export/Import: This section enables you to export your interactions and parameters to a JSON file and import them back into the interface.

Tips

  • You can collapse and expand each section by clicking the "+" or "-" button next to the section title.
  • The interface stores your API key and some settings in your browser's local storage. This means that your API key and settings will be remembered when you close and reopen the interface in the same browser.

Disclaimer

Please note that this project is not affiliated with or endorsed by OpenAI. Use this interface at your own risk, and make sure to follow OpenAI's usage guidelines and terms of service.

Licence

This project is licenced under the MIT License. (Refer to the license file for more information.)

About

A simpler (for me at least) interface for testing OpenAI's API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors