Coder Social home page Coder Social logo

chatgpt's Introduction

chatgpt: Chat GPT console client in Golang

GitHub license Go

A Golang console client for ChatGPT (https://chat.openai.com) using GPT

Install

go get -u -x github.com/kkdai/chatgpt

Request for API from OpenAI

Request your OpenAPI key in https://beta.openai.com/account/api-keys

Usage

export API_KEY=YOUR_KEY chatgpt  

Snapshot

Contribute

Please open up an issue on GitHub before you put a lot efforts on pull request. The code submitting to PR must be filtered with gofmt

License

This package is licensed under MIT license. See LICENSE for details.

chatgpt's People

Contributors

jpcweb avatar kkdai avatar leo424y avatar muhammadsoomro88 avatar shamspathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

chatgpt's Issues

no debug, no output

Dear developer,
i tried your app but it does try to connect but does not exit any error. I whitlisted it in my firewall (little snitch).
I am running golang: go version go1.19.5 darwin/arm64
Will try to setup an cicd for this.

Greetings,
Stefan

add english prompt

I feel uncomfortable with these unknown characters in prompt.
How can I change them to english?

context deadline exceeded (Client.Timeout or context cancellation while reading body)

when I ask a complex question , It will random interrupt.

请输入你的问题(quit 离开): 帮我写个关于 c++ 基础知识的博客

C++是一种面向对象的编程语言,它是一种多范式的编程语言,可以用于开发桌面应用程序、移动应用程序、服务器应用程序、游戏开发等。C++是一种非常强大的编程语言,它拥有非常强大的功能,可以帮助开发者实现复杂的功能。

C++的基础知识包括:

  1. 数据类型:C++支持多种数据类型,包括基本数据类型(int、float、char等)、枚举类型、结构体、类等。

  2. 变量:变量是程序中用于存储数据的容器,它们可以是基本数据类型,也可以是复合数据类型,如结构体和类。

  3. 运算符:C++支持多种运算符,包括算术运算符、关系运算符、逻辑运算符、位运算符等。

  4. 控制语句:C++支持多种控制语句,包括if-else、switch-case、while、do-while、for等。

  5. 函数:函数是程序中的一种重要组成部分,它可以实现特定功能,并且可以被多次调用。

  6. 模板:模板是C++中的一种重要概念,它可以帮助开发者实现代码的复用,提高程序的可维护性。context deadline exceeded (Client.Timeout or context cancellation while reading body)

Code returns some random Java code on providing empty question.

There are certain keywords on which code returns some random Java code i.e on passing empty questions & on passing strings like "loop", "break", "cls" it halts for couple of seconds and then return the error context deadline exceeded (Client.Timeout or context cancellation while reading body)

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.