sashabaranov/go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go

GoMakefilegogolangopenaistreaming-apigpt-3dall-egpt-4openai-whisperchatgptchatgpt-api
This is stars and forks stats for /sashabaranov/go-openai repository. As of 19 Apr, 2024 this repository has 6497 stars and 901 forks.

Go OpenAI This library provides unofficial Go clients for OpenAI API. We support: ChatGPT GPT-3, GPT-4 DALL·E 2 Whisper Installation go get github.com/sashabaranov/go-openai Currently, go-openai requires Go version 1.18 or greater. Usage ChatGPT example usage: package main import ( "context" "fmt" openai "github.com/sashabaranov/go-openai" ) func main() { client := openai.NewClient("your token") resp, err := client.CreateChatCompletion( context.Background(), openai.ChatCompletionRequest{ Model:...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
SpenserCai/GoWxDumpGoBatchfile1.2k+3168+1
HaoZi-Team/ChatGPT-PHPPHP1010260
ddddddeon/aRustMakefile2410100
64bit/async-openaiRust6150720
LiaoSirui/blog.liaosirui.comShellMakefile1330230
alfianlosari/ChatGPTSwiftSwiftRuby5010900
KSESEU/LLMPapersTeXPython2490240
ddiu8081/chatgpt-demoTypeScriptAstroCSS7.6k03.8k0
JimmyLv/BiliGPTTypeScriptCSSJavaScript4.3k05580
RainEggplant/chatgpt-telegram-botTypeScriptDockerfileShell3150980