Giter Site home page Giter Site logo

chatgpt-ai's Introduction

ChatGPT AI 在线智能工具

一、概述

1.1 项目简介

使用golang封装了ChatGPTAI接口,后续有时间会继续完善。

项目示例地址:由于开放后,大量访问会导致作者的OpenAI账号消耗殆尽,所以不再提供示例地址

运行效果如下:

效果图

1.2 如何运行

首先确保你的电脑上已经安装了golang环境,然后执行以下命令:

# 下载项目
git clone https://github.com/jikerdev/ChatGPT-AI.git ai
# 安装依赖
cd ai
go get
# 添加环境变量
export GPT3_API_KEY="此处填写真实的OPENAI API KEY"
# 运行
go run main.go routes.go

二、接口列表

2.1 /completions

传入一个问题,ChatGPT返回回答内容

2.1.1 请求参数

参数名 备注 示例值
token 关键问题 帮我写一首情诗

2.1.2 示例

本地请求示例

GET http://localhost/completions?token=帮我写一首情诗

响应数据头为:content-type: text/event-stream; charset=utf-8

chatgpt-ai's People

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.