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.
- 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
- Download the
simpler-playground.htmlfile from this repository. - Open the
simpler-playground.htmlfile in a modern web browser (e.g., Google Chrome, Mozilla Firefox, Microsoft Edge). - Enter your OpenAI API key in the "API Key" field.
- Customize the model and other parameters as needed.
- Enter the role and user input for the first interaction.
- Click the "Submit" button to send the request and receive the assistant's response.
- Continue adding interactions as desired.
- Use the "Export" and "Import" buttons to save and load your interactions and parameters inJSON format.
- 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.
- 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.
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.
This project is licenced under the MIT License. (Refer to the license file for more information.)