From 568c387273383faf4970fe3360943c4006ddcae3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 15:27:20 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 ++-- src/resources/chat/completions.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6bc34489..dcfa00aa 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-bf2f8f13aa9e13553634ad6efce85e7fa77302f9ddcf20f7b91f6ca1c85667ca.yml -openapi_spec_hash: 2306f08b88e1f59c5750f4573f003fdc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-ce82a5d1b3f30d6bd5f275525240ea79ffd4ee44024fdf9c08ea2dde9aad9a2d.yml +openapi_spec_hash: ccdcc5032a425db8100d85c758e561cb config_hash: 73457be4d72f0bf4c22de49f2b2d4ec3 diff --git a/src/resources/chat/completions.ts b/src/resources/chat/completions.ts index c8149341..d1169abc 100644 --- a/src/resources/chat/completions.ts +++ b/src/resources/chat/completions.ts @@ -563,6 +563,8 @@ export namespace CompletionCreateParams { role: 'tool'; tool_call_id: string; + + name?: string; } /** From 1f56b8dd9f44a6914865e0d88973f8eb60f116d6 Mon Sep 17 00:00:00 2001 From: Blaine Kasten Date: Thu, 23 Oct 2025 13:57:41 -0500 Subject: [PATCH 2/3] fix: Narrow type resolution on image create api via response_format discrimination --- src/resources/images.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/resources/images.ts b/src/resources/images.ts index 68ea83c0..2196ba76 100644 --- a/src/resources/images.ts +++ b/src/resources/images.ts @@ -16,7 +16,14 @@ export class Images extends APIResource { * }); * ``` */ - create(body: ImageCreateParams, options?: RequestOptions): APIPromise { + create( + body: Body, + options?: RequestOptions, + ): APIPromise< + Omit & { + data: Body['response_format'] extends 'base64' ? ImageDataB64[] : ImageDataURL[]; + } + > { return this._client.post('/images/generations', { body, ...options }); } } From c37fb283c59966faaa3b3815938f72fa068e1856 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 23 Oct 2025 21:35:05 +0000 Subject: [PATCH 3/3] release: 0.28.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 2b114496..98004448 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.27.0" + ".": "0.28.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 51fbc58e..ad2bfcd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.28.0 (2025-10-23) + +Full Changelog: [v0.27.0...v0.28.0](https://github.com/togethercomputer/together-typescript/compare/v0.27.0...v0.28.0) + +### Features + +* **api:** api update ([568c387](https://github.com/togethercomputer/together-typescript/commit/568c387273383faf4970fe3360943c4006ddcae3)) + + +### Bug Fixes + +* Narrow type resolution on image create api via response_format discrimination ([1f56b8d](https://github.com/togethercomputer/together-typescript/commit/1f56b8dd9f44a6914865e0d88973f8eb60f116d6)) + ## 0.27.0 (2025-10-21) Full Changelog: [v0.26.0...v0.27.0](https://github.com/togethercomputer/together-typescript/compare/v0.26.0...v0.27.0) diff --git a/package.json b/package.json index c7311a89..12977eec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "together-ai", - "version": "0.27.0", + "version": "0.28.0", "description": "The official TypeScript library for the Together API", "author": "Together ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 288031cf..3e76cc42 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.27.0'; // x-release-please-version +export const VERSION = '0.28.0'; // x-release-please-version