docs: add requires go version in README.md (#397)

This commit is contained in:
渡邉祐一 / Yuichi Watanabe
2023-06-21 23:53:15 +09:00
committed by GitHub
parent f22da8a7ed
commit e19b074a11

View File

@@ -14,7 +14,7 @@ This library provides unofficial Go clients for [OpenAI API](https://platform.op
``` ```
go get github.com/sashabaranov/go-openai go get github.com/sashabaranov/go-openai
``` ```
Currently, go-openai requires Go version 1.18 or greater.
### ChatGPT example usage: ### ChatGPT example usage:
@@ -554,4 +554,4 @@ These tests send real network traffic to the OpenAI API and may reach rate limit
OPENAI_TOKEN=XXX go test -v -tags=integration ./api_integration_test.go OPENAI_TOKEN=XXX go test -v -tags=integration ./api_integration_test.go
``` ```
If `OPENAI_TOKEN` environment variables are not available, integration tests will be skipped. If `OPENAI_TOKEN` environment variables are not available, integration tests will be skipped.