Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.