Code Monkey home page Code Monkey logo

chatgpt-anywhere's Introduction

chatGPT-Anywhere

基于 api2d-jsvue3-beautiful-chat 制作的chatGPT网页聊天工具。可以用于快速部署一个专属自己的chatGPT聊天页面。

在线速览

访问https://yilihjy.github.io/chatgpt-anywhere/ 立刻体验

已有特性

  • 网页聊天应用,能够和chatGPT进行文字聊天;
  • 纯前端页面,不需要你运行任何node服务;
  • 支持切换openAI的官方接口和第三方接口,方便不同网络环境使用;
  • 能够保存每次会话的记录为json文件,方便记录下有趣的对话内容;
  • 支持上传保存的json文件,随时恢复上一次和chatGPT的对话;
  • 快速利用Github Pages部署属于自己的专属聊天页面;

利用Github Pages快速部署指南

Fork本项目代码到你自己的GitHub账号
按钮在右上角
fork-button
Fork完成后,点击你仓库Setting按钮
setting-button
选择侧边的pages页签,按红框中的内容进行设置,点击save setting-button
等待GitHub给你生成你的pages,你的专属页面就部署好了

本地开发

需要node 18
使用pnpm作为包管理器

安装依赖

pnpm install --registry=https://registry.npmmirror.com

运行

pnpm dev

构建

pnpm build

配置说明

如何获取key

可以从OpenAI 的官网获取你的key https://platform.openai.com/account/api-keys

使用OpenAI官方api的时候,请选择请求域名为https://api.openai.com

我在OpenAI不提供服务的地区,我该怎么办?

你可以选择一些非OpenAI官方提供的代理服务

比如API2D (价格比OpenAI的高一些)
这里建议使用邮箱进行注册,因为Github注册总是卡住。 注册后,可以参考下面的图片获取key
create-key
使用API2D的服务时候,请选择请求域名为https://openai.api2d.net

当然,你也可以在请求域名的输入框中输入任何想使用的域名

模型选择

推荐选择gpt-3.5-turbo,理由是便宜
想了解更多的话,可以参考文档:https://platform.openai.com/docs/api-reference/chat/create

默认引导

这里设置的文本,会被自动添加到每个会话的开始

{
    "role": "system",
    "content": "You are a helpful assistant."
}

开始聊天

完成配置后,点击页面右下角的按钮
start-chat
开始和chatGPT愉快的聊天吧。

请遵守并尊重您所在地区的法律规定,维护社会公序良俗

开源协议

MIT

chatgpt-anywhere's People

Contributors

yilihjy 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.