Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- main
- next

jobs:
lint:
Expand Down
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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).
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).

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

Expand Down Expand Up @@ -396,14 +396,6 @@ TypeScript >= 4.5 is supported.

The following runtimes are supported:

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

Note that React Native is not supported at this time.

If you are interested in other runtime environments, please open or upvote an issue on GitHub.
4 changes: 2 additions & 2 deletions src/resources/inference-pipelines/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as DataAPI from './data';

export class Data extends APIResource {
/**
* Stream production data to an inference pipeline.
* Create an inference data point in an inference pipeline.
*/
stream(
inferencePipelineId: string,
Expand All @@ -33,7 +33,7 @@ export interface DataStreamParams {
| DataStreamParams.TextClassificationData;

/**
* A list of entries that represent rows of a csv file
* A list of inference data points with inputs and outputs
*/
rows: Array<Record<string, unknown>>;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/projects/inference-pipelines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('resource inferencePipelines', () => {
await expect(
openlayer.projects.inferencePipelines.list(
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
{ name: 'string', page: 1, perPage: 1 },
{ name: 'name', page: 1, perPage: 1 },
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(Openlayer.NotFoundError);
Expand Down
2 changes: 1 addition & 1 deletion tests/api-resources/projects/projects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('resource projects', () => {
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
await expect(
openlayer.projects.list(
{ name: 'string', page: 1, perPage: 1, taskType: 'llm-base' },
{ name: 'name', page: 1, perPage: 1, taskType: 'llm-base' },
{ path: '/_stainless_unknown_path' },
),
).rejects.toThrow(Openlayer.NotFoundError);
Expand Down