Giter VIP home page Giter VIP logo

chatgpt-miniprogram's Introduction

ChatGPT 微信小程序

本小程序实现保留上下文的对话功能、封装 System Message 制作的包含文本摘要、文本润色的工具箱。

主要特点

  • 基于官方 GPT-3.5 API 的强大的语言生成和对话功能
  • 使用 WebSocket 实现高效的流式传输,提升通信效率
  • 点击对话内容自动复制到剪贴板,方便用户使用
  • 支持转发小程序到聊天,方便用户与好友分享
  • 硬币机制,限制用户过量使用

构建说明

本微信小程序采用原生开发,使用了 TDesign 组件库。

下载和安装

  1. 克隆本项目到本地。

构建和运行

  1. 在微信开发者工具中,选择“小程序项目”。
  2. 单击“导入项目”并选择本项目的根目录。
  3. 点击“编译”按钮以在微信开发者工具中预览小程序。

配置

在开始使用之前,请根据需要配置以下内容:

appid

在 /project.config.json 文件中设置 appid 字段以指定小程序的 AppID。

/src/utils/config.js

修改 BACKEND_URL_BASE 和 WEBSOCKET_URL_BASE 以指定后端和 WebSocket 的 URL。

注意事项

  • 使用须遵循相应的法律法规,并承担相应的法律责任

chatgpt-miniprogram's People

Contributors

lvjiaxuan avatar zhengbangbo avatar

Watchers

 avatar  avatar

chatgpt-miniprogram's Issues

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.