Go Packages
pkg.go.dev › github.com › ayush6624 › go-chatgpt
chatgpt package - github.com/ayush6624/go-chatgpt - Go Packages
Go-ChatGPT is an open-source GoLang client for ChatGPT, a large language model trained by OpenAI.
GitHub
github.com › kkdai › chatgpt
GitHub - kkdai/chatgpt: ChatGPT Console client in Golang
Starred by 247 users
Forked by 44 users
Languages Go
Videos
GitHub
github.com › ayush6624 › go-chatgpt
GitHub - ayush6624/go-chatgpt: Open-source GoLang client for ChatGPT
Open-source GoLang client for ChatGPT. Contribute to ayush6624/go-chatgpt development by creating an account on GitHub.
Starred by 28 users
Forked by 13 users
Languages Go
GitHub
github.com › chatgp › chatgpt-go
GitHub - all-in-aigc/chatgpt-webapi: chatgpt go sdk
package main import ( "log" "net/http" "time" chatgpt "github.com/chatgp/chatgpt-go" ) func main() { // new chatgpt client token := `copy-from-cookies` cfValue := "copy-from-cookies" cookies := []*http.Cookie{ { Name: "__Secure-next-auth.session-token", Value: token, }, { Name: "cf_clearance", Value: cfValue, }, } cli := chatgpt.NewClient( chatgpt.WithDebug(true), chatgpt.WithTimeout(60*time.Second), chatgpt.WithCookies(cookies), ) message := "say hello to me" stream, err := cli.GetChatStream(message) if err != nil { log.Fatalf("get chat stream failed: %v\n", err) } var answer string for text := range stream.Stream { log.Printf("stream text: %s\n", text.Content) answer = text.Content } if stream.Err != nil { log.Fatalf("stream closed with error: %v\n", stream.Err) } log.Printf("q: %s, a: %s\n", message, answer) }
Starred by 159 users
Forked by 25 users
Languages Go
GitHub
github.com › sashabaranov › go-openai
GitHub - sashabaranov/go-openai: OpenAI ChatGPT, GPT-5, GPT-Image-1, Whisper API clients for Go
Starred by 10.5K users
Forked by 1.7K users
Languages Go
Go Packages
pkg.go.dev › github.com › rostislaved › chatgpt
chatgpt command - github.com/rostislaved/chatgpt - Go Packages
github.com/rostislaved/chatgpt · Open Source Insights · A Golang console client for ChatGPI (https://chat.openai.com) using GPT · Request your OpenAPI key in https://beta.openai.com/account/api-keys · export API_KEY=OpenAPI_key · go install -x github.com/rostislaved/chatgpt@latest ·
GitHub
github.com › abhayptp › go-chatgpt
GitHub - abhayptp/go-chatgpt: An unofficial ChatGPT client in Golang.
An unofficial ChatGPT client in Golang. Contribute to abhayptp/go-chatgpt development by creating an account on GitHub.
Starred by 65 users
Forked by 14 users
Languages Go
Go Packages
pkg.go.dev › github.com › solywsh › chatgpt
chatgpt package - github.com/solywsh/chatgpt - Go Packages
package main import ( "fmt" "github.com/solywsh/chatgpt" "time" ) func main() { chat := chatgpt.New("openai_key", "user_id(not required)", 10*time.Second) defer chat.Close() //select { //case <-chat.GetDoneChan(): // fmt.Println("time out") //} question := "现在你是一只猫,接下来你只能用\"喵喵喵\"回答." fmt.Printf("Q: %s\n", question) answer, err := chat.ChatWithContext(question) if err != nil { fmt.Println(err) } fmt.Printf("A: %s\n", answer) question = "你是一只猫吗?" fmt.Printf("Q: %s\n", question) answer, err = chat.ChatWithContext(question) if err != nil { fmt.Println(err) } fmt.Printf("A: %s\n", answer) // Q: 现在你是一只猫,接下来你只能用"喵喵喵"回答.
GitHub
github.com › raihan2bd › chatgpt-go
GitHub - raihan2bd/chatgpt-go: NeuralChat is a cutting-edge chatbot project that allows users to chat with the state-of-the-art OpenAI chatbot, GPT-3.5, in a seamless and user-friendly manner.
NeuralChat is a cutting-edge chatbot project that allows users to chat with the state-of-the-art OpenAI chatbot, GPT-3.5, in a seamless and user-friendly manner. The project is built using Golang, PostgreSQL, Javascript, HTML, and CSS, making ...
Starred by 10 users
Forked by 3 users
Languages Go 50.7% | HTML 27.8% | CSS 21.0% | JavaScript 0.5%
Go Packages
pkg.go.dev › github.com › amarnathcjd › chatgpt
chatgpt package - github.com/amarnathcjd/chatgpt - Go Packages
package chatgpt import ( "fmt" "context" "github.com/amarnathcjd/chatgpt" ) func main() { client := chatgpt.NewClient(&chatgpt.Config{ Email: "[email protected]", Password: "password", // or ApiKey: "sk-xxxxxxxxxxxx", }) if err := client.Start(); err != nil { panic(err) } ask, err := client.Ask(context.Background(), "Hello, nice to meet you") if err != nil { panic(err) } fmt.Println("ChatGPT: ", ask.Message) }
GitHub
github.com › otiai10 › openaigo
GitHub - otiai10/openaigo: OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested
OpenAI GPT3/3.5 and GPT4 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested - otiai10/openaigo
Starred by 300 users
Forked by 37 users
Languages Go
GitHub
github.com › AmarnathCJD › ChatGPT
GitHub - AmarnathCJD/ChatGPT: Enhance Your AI Applications with ChatGPT Wrapper - Secure Email Authentication, Context Support, and All GPT Models in Golang!
Starred by 22 users
Forked by 6 users
Languages Go 95.0% | Python 5.0%
GitHub
github.com › fengxxc › go-chatgpt
GitHub - fengxxc/go-chatgpt: a ChatGPT API client based on the Go
a ChatGPT API client based on the Go. Contribute to fengxxc/go-chatgpt development by creating an account on GitHub.
Author fengxxc
Go Packages
pkg.go.dev › github.com › golang-infrastructure › go-ChatGPT
chatgpt package - github.com/golang-infrastructure/go-ChatGPT - Go Packages
package main import ( "fmt" chatgpt "github.com/golang-infrastructure/go-ChatGPT" ) func main() { // 把JWT放到这里 jwt := "xxx" chat := chatgpt.NewChatGPT(jwt) talk, err := chat.Talk("你好,我的名字叫陈二!") if err != nil { fmt.Println(err.Error()) return } fmt.Println(talk.Message.Content) talk, err = chat.Talk("我的名字叫什么呀?") if err != nil { fmt.Println(err.Error()) return } fmt.Println(talk.Message.Content) // Output: // {text [你好,陈二!很高兴认识你。我是 Assistant,一个大型语言模型,旨在帮助人们了解更多关于世界的信
Go Packages
pkg.go.dev › github.com › billikeu › go-chatgpt
go-chatgpt command - github.com/billikeu/go-chatgpt - Go Packages
go-chatgpt is a ChatGPT unofficial API developed using Golang. With most chatbot APIs being built on Python, go-chatgpt is unique in its ability to be easily compiled and deployed. It's designed to work seamlessly with your current applications, providing a customizable and reliable chatbot ...
Go Packages
pkg.go.dev › github.com › jchavannes › chatgpt
chatgpt command - github.com/jchavannes/chatgpt - Go Packages
github.com/jchavannes/chatgpt · Open Source Insights · This is a Golang library for interacting with the OpenAI API. It is meant to be imported into other projects. example.go shows how to use the library.
GitHub
github.com › 8ff › gpt
GitHub - 8ff/gpt: GPT-3.5 Turbo & GPT-4 Chatbot Golang Library
This repository contains a Golang implementation of a chatbot using the OpenAI GPT-3.5 Turbo as well as the new GPT-4 API.
Starred by 13 users
Forked by 4 users
Languages Go 99.6% | Shell 0.4%
GitHub
github.com › salihguru › gpt
GitHub - salihguru/gpt: ChatGPT API client for golang
ChatGPT API client for golang. Contribute to salihguru/gpt development by creating an account on GitHub.
Author salihguru