/custom-chatgpt

A web application for chatgpt api

Primary LanguageTypeScriptMIT LicenseMIT

CustomGPT

中文 | English

A front-end application developed based on ChatGPT API.

Online Preview

https://ocherry341.github.io/custom-chatgpt/en/

Features

  • Question and answer function consistent with the ChatGPT official website
  • Custom API parameters
  • Custom API base URL
  • Save configuration parameters
  • Save message list

Usage

  1. Get an API Key.
  2. Modify the API parameters in settings, supporting settings saving and reading.
  3. Save your conversations at any node, such as saving Awesome ChatGPT Prompts for easy use next time.

All settings and API Keys are saved locally, and the server does not save any content.

Known Issues

  • Markdown rendering: Text dynamic changes will cause page flicker.
  • logit_bias param
    • Cannot correctly parse Chinese token IDs.
    • Using this parameter according to the official instructions cannot achieve the expected effect.
    • Output abnormalities or slow request issues may occur when the value is too large.

Development

This project is generated with Angular CLI version 15.2.1. Check Angular official documents for more help.

Development Environment Configuration

Run npm i to install the project dependencies, and run ng serve to start the development server. You can access the application in the browser by entering http://localhost:4201/. The code can be updated in real time.

Run ng extract-i18n to extract internationalized text, and save the translated text to the src/locale/messages.* file.

Packing and Deployment

Run the ng build --localize command to package the project. The packaged web files are saved in the dist/ directory.