Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rakyll/openai-go
Go client libraries for OpenAI
https://github.com/rakyll/openai-go
Last synced: 7 days ago
JSON representation
Go client libraries for OpenAI
- Host: GitHub
- URL: https://github.com/rakyll/openai-go
- Owner: rakyll
- License: apache-2.0
- Created: 2023-02-24T22:07:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-29T15:18:18.000Z (about 1 year ago)
- Last Synced: 2024-05-01T14:25:27.039Z (9 months ago)
- Language: Go
- Size: 42 KB
- Stars: 451
- Watchers: 6
- Forks: 36
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - rakyll/openai-go - 11 star:0.5k fork:0.0k Go client libraries for OpenAI (Go)
README
# openai-go [![Go Reference](https://pkg.go.dev/badge/github.com/rakyll/openai-go.svg)](https://pkg.go.dev/github.com/rakyll/openai-go) [![Go](https://github.com/rakyll/openai-go/actions/workflows/go.yml/badge.svg)](https://github.com/rakyll/openai-go/actions/workflows/go.yml)
Go client libraries for OpenAI APIs. Supported APIs:
```
✅ completions
✅ chat
✅ edits
🚧 images
✅ moderations
✅ audio
✅ embeddings
```Set your [API key](https://platform.openai.com/account/api-keys)
as the `OPENAI_API_KEY` environmental variable before running the examples.