https://github.com/shell-company/gpt3client
A Golang GPT-3 client generated by GPT-3 itself
https://github.com/shell-company/gpt3client
Last synced: 7 days ago
JSON representation
A Golang GPT-3 client generated by GPT-3 itself
- Host: GitHub
- URL: https://github.com/shell-company/gpt3client
- Owner: Shell-Company
- License: mit
- Created: 2022-07-01T22:09:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-10T23:55:25.000Z (over 3 years ago)
- Last Synced: 2025-04-03T13:21:21.498Z (10 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAI GPT-3 Client
## Overview
This is a client for the OpenAI GPT-3 text generation API. The client was generated by GPT-3 itself from a curl statement 🤖.
## Installation
To install this client, run the following command:
```
go get github.com/shell-company/gpt3client
```
## Usage
To use this client, you will need to set the `OPEN_AI_APIKEY` environment variable to your OpenAI API key.
You can then use the client like so:
```go
package main
import (
"fmt"
"github.com/shell-company/gpt3client"
)
func main() {
output, _ := gpt3client.SendOpenAIPrompt("Hello world")
fmt.Println(output)
}
```
This will generate a response from the OpenAI GPT-3 API.