Skip to content

Commit 8e1b3c7

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#27)
1 parent 825ab29 commit 8e1b3c7

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
branches:
88
- main
9+
- next
910

1011
jobs:
1112
lint:

README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This library provides convenient access to the Openlayer REST API from server-side TypeScript or JavaScript.
66

7-
The REST API documentation can be found [on openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). The full API of this library can be found in [api.md](api.md).
7+
The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). The full API of this library can be found in [api.md](api.md).
88

99
It is generated with [Stainless](https://www.stainlessapi.com/).
1010

@@ -396,14 +396,6 @@ TypeScript >= 4.5 is supported.
396396

397397
The following runtimes are supported:
398398

399-
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
400-
- Deno v1.28.0 or higher, using `import Openlayer from "npm:openlayer"`.
401-
- Bun 1.0 or later.
402-
- Cloudflare Workers.
403-
- Vercel Edge Runtime.
404-
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
405-
- Nitro v2.6 or greater.
406-
407399
Note that React Native is not supported at this time.
408400

409401
If you are interested in other runtime environments, please open or upvote an issue on GitHub.

src/resources/inference-pipelines/data.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as DataAPI from './data';
66

77
export class Data extends APIResource {
88
/**
9-
* Stream production data to an inference pipeline.
9+
* Create an inference data point in an inference pipeline.
1010
*/
1111
stream(
1212
inferencePipelineId: string,
@@ -33,7 +33,7 @@ export interface DataStreamParams {
3333
| DataStreamParams.TextClassificationData;
3434

3535
/**
36-
* A list of entries that represent rows of a csv file
36+
* A list of inference data points with inputs and outputs
3737
*/
3838
rows: Array<Record<string, unknown>>;
3939
}

tests/api-resources/projects/inference-pipelines.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('resource inferencePipelines', () => {
5757
await expect(
5858
openlayer.projects.inferencePipelines.list(
5959
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
60-
{ name: 'string', page: 1, perPage: 1 },
60+
{ name: 'name', page: 1, perPage: 1 },
6161
{ path: '/_stainless_unknown_path' },
6262
),
6363
).rejects.toThrow(Openlayer.NotFoundError);

tests/api-resources/projects/projects.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('resource projects', () => {
5050
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5151
await expect(
5252
openlayer.projects.list(
53-
{ name: 'string', page: 1, perPage: 1, taskType: 'llm-base' },
53+
{ name: 'name', page: 1, perPage: 1, taskType: 'llm-base' },
5454
{ path: '/_stainless_unknown_path' },
5555
),
5656
).rejects.toThrow(Openlayer.NotFoundError);

0 commit comments

Comments
 (0)