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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.16.3"
".": "0.17.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 18
openapi_spec_hash: 20f058101a252f7500803d66aff58eb3
openapi_spec_hash: 153617b7252b1b12f21043b2a1246f8b
config_hash: 30422a4611d93ca69e4f1aff60b9ddb5
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.17.0 (2025-09-09)

Full Changelog: [v0.16.3...v0.17.0](https://github.com/openlayer-ai/openlayer-ts/compare/v0.16.3...v0.17.0)

### Features

* **api:** api update ([0f199f5](https://github.com/openlayer-ai/openlayer-ts/commit/0f199f58a01448f9bf67ce49659e2b66cdce5ae8))


### Bug Fixes

* coerce nullable values to undefined ([ad82989](https://github.com/openlayer-ai/openlayer-ts/commit/ad82989db94aec8bd1e3e7d5e5129077d22e72d3))


### Chores

* ci build action ([f3022ae](https://github.com/openlayer-ai/openlayer-ts/commit/f3022ae1d2c5b5807956e855b5bda7179a8cbc90))

## 0.16.3 (2025-09-04)

Full Changelog: [v0.16.2...v0.16.3](https://github.com/openlayer-ai/openlayer-ts/compare/v0.16.2...v0.16.3)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openlayer",
"version": "0.16.3",
"version": "0.17.0",
"description": "The official TypeScript library for the Openlayer API",
"author": "Openlayer <support@openlayer.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz "${BUILD_PATH:-dist}" | curl -v -X PUT \
UPLOAD_RESPONSE=$(tar "${BASE_PATH:+-C$BASE_PATH}" -cz "${ARTIFACT_PATH:-dist}" | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)

Expand Down
6 changes: 3 additions & 3 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1087,21 +1087,21 @@ export const coerceBoolean = (value: unknown): boolean => {
};

export const maybeCoerceInteger = (value: unknown): number | undefined => {
if (value === undefined) {
if (value == null) {
return undefined;
}
return coerceInteger(value);
};

export const maybeCoerceFloat = (value: unknown): number | undefined => {
if (value === undefined) {
if (value == null) {
return undefined;
}
return coerceFloat(value);
};

export const maybeCoerceBoolean = (value: unknown): boolean | undefined => {
if (value === undefined) {
if (value == null) {
return undefined;
}
return coerceBoolean(value);
Expand Down
10 changes: 10 additions & 0 deletions src/resources/inference-pipelines/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,21 @@ export namespace DataStreamParams {
*/
questionColumnName?: string;

/**
* Name of the column with the session id.
*/
sessionIdColumnName?: string | null;

/**
* Name of the column with the timestamps. Timestamps must be in UNIX sec format.
* If not provided, the upload timestamp is used.
*/
timestampColumnName?: string;

/**
* Name of the column with the user id.
*/
userIdColumnName?: string | null;
}

export namespace LlmData {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.16.3'; // x-release-please-version
export const VERSION = '0.17.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/inference-pipelines/data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ describe('resource data', () => {
numOfTokenColumnName: 'tokens',
prompt: [{ content: '{{ user_query }}', role: 'user' }],
questionColumnName: 'question',
sessionIdColumnName: 'session_id',
timestampColumnName: 'timestamp',
userIdColumnName: 'user_id',
},
rows: [{ user_query: 'bar', output: 'bar', tokens: 'bar', cost: 'bar', timestamp: 'bar' }],
});
Expand Down