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.27.0"
".": "0.28.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <dev-feedback@TogetherAI.com>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/resources/chat/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ export namespace CompletionCreateParams {
role: 'tool';

tool_call_id: string;

name?: string;
}

/**
Expand Down
9 changes: 8 additions & 1 deletion src/resources/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ export class Images extends APIResource {
* });
* ```
*/
create(body: ImageCreateParams, options?: RequestOptions): APIPromise<ImageFile> {
create<Body extends ImageCreateParams>(
body: Body,
options?: RequestOptions,
): APIPromise<
Omit<ImageFile, 'data'> & {
data: Body['response_format'] extends 'base64' ? ImageDataB64[] : ImageDataURL[];
}
> {
return this._client.post('/images/generations', { body, ...options });
}
}
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.27.0'; // x-release-please-version
export const VERSION = '0.28.0'; // x-release-please-version