Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

ChatGPT-Official

> 编程语言
Open source

ChatGPT Client using official OpenAI API

99 stars0 likes2 views
WebsiteGitHub

About

ChatGPT Client using official OpenAI API

chatgpt-official - a simple library to create ChatGPT that uses OpenAI official API [Discord]

A simple Node.js module for creating ChatGPT using OpenAI official API.

Check the new Google Bard Chatbot!

Installation

To install the package, run the following command:

bash
npm install chatgpt-official

Official Chat Completion API from OpenAI

javascript
import { ChatGPT } from "chatgpt-official";

let bot = new ChatGPT("");

let response = await bot.ask("Hello?");
console.log(response);

Creating ChatGPT with Official OpenAI Completion API

javascript
import { OpenAI } from "chatgpt-official";

let bot = new OpenAI("");

let response = await bot.ask("Hello?");
console.log(response);

Usage: Official Chat Completion API from OpenAI

…

Usage: Creating ChatGPT with Official OpenAI Completion API

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言