Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shell-company/gpt3client
A Golang GPT-3 client generated by GPT-3 itself
https://github.com/shell-company/gpt3client
Last synced: 23 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 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-10T23:55:25.000Z (over 2 years ago)
- Last Synced: 2024-06-19T19:44:12.051Z (6 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 2
- 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 mainimport (
"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.