-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2366064
commit 6bbd21a
Showing
35 changed files
with
218 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Release Doctor | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release_doctor: | ||
name: release doctor | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'openlayer-ai/openlayer-go' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check release environment | ||
run: | | ||
bash ./scripts/check-release-environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.0.1-alpha.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Openlayer Go API Library | ||
|
||
<a href="https://pkg.go.dev/github.com/stainless-sdks/openlayer-go"><img src="https://pkg.go.dev/badge/github.com/stainless-sdks/openlayer-go.svg" alt="Go Reference"></a> | ||
<a href="https://pkg.go.dev/github.com/openlayer-ai/openlayer-go"><img src="https://pkg.go.dev/badge/github.com/openlayer-ai/openlayer-go.svg" alt="Go Reference"></a> | ||
|
||
The Openlayer Go library provides convenient access to [the Openlayer REST | ||
API](https://openlayer.com/docs/api-reference/rest/overview) from applications written in Go. The full API of this library can be found in [api.md](api.md). | ||
|
@@ -9,18 +9,26 @@ It is generated with [Stainless](https://www.stainlessapi.com/). | |
|
||
## Installation | ||
|
||
<!-- x-release-please-start-version --> | ||
|
||
```go | ||
import ( | ||
"github.com/stainless-sdks/openlayer-go" // imported as githubcomopenlayeraiopenlayergo | ||
"github.com/openlayer-ai/openlayer-go" // imported as githubcomopenlayeraiopenlayergo | ||
) | ||
``` | ||
|
||
<!-- x-release-please-end --> | ||
|
||
Or to pin the version: | ||
|
||
<!-- x-release-please-start-version --> | ||
|
||
```sh | ||
go get -u 'github.com/stainless-sdks/[email protected]' | ||
go get -u 'github.com/openlayer-ai/[email protected]' | ||
``` | ||
|
||
<!-- x-release-please-end --> | ||
|
||
## Requirements | ||
|
||
This library requires Go 1.18+. | ||
|
@@ -36,8 +44,8 @@ import ( | |
"context" | ||
"fmt" | ||
|
||
"github.com/stainless-sdks/openlayer-go" | ||
"github.com/stainless-sdks/openlayer-go/option" | ||
"github.com/openlayer-ai/openlayer-go" | ||
"github.com/openlayer-ai/openlayer-go/option" | ||
) | ||
|
||
func main() { | ||
|
@@ -164,7 +172,7 @@ client.InferencePipelines.Data.Stream(context.TODO(), ..., | |
) | ||
``` | ||
|
||
See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/openlayer-go/option). | ||
See the [full list of request options](https://pkg.go.dev/github.com/openlayer-ai/openlayer-go/option). | ||
|
||
### Pagination | ||
|
||
|
@@ -399,4 +407,4 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con | |
|
||
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. | ||
|
||
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/openlayer-go/issues) with questions, bugs, or suggestions. | ||
We are keen for your feedback; please open an [issue](https://www.github.com/openlayer-ai/openlayer-go/issues) with questions, bugs, or suggestions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.