Skip to content

Commit 8feceb9

Browse files
authored
Merge branch 'togethercomputer:main' into main
2 parents ae307fd + c92d34b commit 8feceb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2620
-361
lines changed

.DS_Store

6 KB
Binary file not shown.

.devcontainer/Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
33
{
4-
"name": "Debian",
5-
"build": {
6-
"dockerfile": "Dockerfile"
4+
"name": "Development",
5+
"image": "mcr.microsoft.com/devcontainers/typescript-node:latest",
6+
"features": {
7+
"ghcr.io/devcontainers/features/node:1": {}
8+
},
9+
"postCreateCommand": "yarn install",
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"esbenp.prettier-vscode"
14+
]
15+
}
716
}
8-
9-
// Features to add to the dev container. More info: https://containers.dev/features.
10-
// "features": {},
11-
12-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13-
// "forwardPorts": [],
14-
15-
// Configure tool-specific properties.
16-
// "customizations": {},
17-
18-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
19-
// "remoteUser": "root"
2017
}

.github/workflows/ci.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
jobs:
1212
lint:
13+
timeout-minutes: 10
1314
name: lint
14-
runs-on: ubuntu-latest
15-
16-
15+
runs-on: ${{ github.repository == 'stainless-sdks/togetherai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
1716
steps:
1817
- uses: actions/checkout@v4
1918

@@ -29,10 +28,12 @@ jobs:
2928
run: ./scripts/lint
3029

3130
build:
31+
timeout-minutes: 5
3232
name: build
33-
runs-on: ubuntu-latest
34-
35-
33+
runs-on: ${{ github.repository == 'stainless-sdks/togetherai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
34+
permissions:
35+
contents: read
36+
id-token: write
3637
steps:
3738
- uses: actions/checkout@v4
3839

@@ -46,10 +47,25 @@ jobs:
4647

4748
- name: Check build
4849
run: ./scripts/build
50+
51+
- name: Get GitHub OIDC Token
52+
if: github.repository == 'stainless-sdks/togetherai-node'
53+
id: github-oidc
54+
uses: actions/github-script@v6
55+
with:
56+
script: core.setOutput('github_token', await core.getIDToken());
57+
58+
- name: Upload tarball
59+
if: github.repository == 'stainless-sdks/togetherai-node'
60+
env:
61+
URL: https://pkg.stainless.com/s
62+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
63+
SHA: ${{ github.sha }}
64+
run: ./scripts/utils/upload-artifact.sh
4965
test:
66+
timeout-minutes: 10
5067
name: test
51-
runs-on: ubuntu-latest
52-
68+
runs-on: ${{ github.repository == 'stainless-sdks/togetherai-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
5369
steps:
5470
- uses: actions/checkout@v4
5571

@@ -63,4 +79,3 @@ jobs:
6379

6480
- name: Run tests
6581
run: ./scripts/test
66-

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.10.0"
2+
".": "0.16.0"
33
}

.stats.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
configured_endpoints: 16
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2FTogetherAI-692e6d7ba3069e890bfe0fcb77a92f52bd5991cc571acaae6e679e4190a936e1.yml
1+
configured_endpoints: 28
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-c949fc43297a5155ea4c433179ee6f0822e25a351f180a5539871687daead7ad.yml
3+
openapi_spec_hash: ca24d10b37e987becfd16b30ea342459
4+
config_hash: a60b100624e80dc8d9144e7bc306f5ce

CHANGELOG.md

Lines changed: 172 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Setting up the environment
22

3-
This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable).
3+
This repository uses [`yarn@v1`](https://classic.yarnpkg.com/lang/en/docs/install).
44
Other package managers may work but are not officially supported for development.
55

66
To set up the repository, run:
@@ -29,10 +29,10 @@ All files in the `examples/` directory are not modified by the generator and can
2929
3030
```
3131

32-
```
33-
chmod +x examples/<your-example>.ts
32+
```sh
33+
$ chmod +x examples/<your-example>.ts
3434
# run the example against your api
35-
yarn tsn -T examples/<your-example>.ts
35+
$ yarn tsn -T examples/<your-example>.ts
3636
```
3737

3838
## Using the repository from source

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2024 Together
189+
Copyright 2025 Together
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

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

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

9-
It is generated with [Stainless](https://www.stainlessapi.com/).
9+
It is generated with [Stainless](https://www.stainless.com/).
1010

1111
## Installation
1212

@@ -316,7 +316,7 @@ await client.chat.completions.create(
316316
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
317317

318318
1. Changes that only affect static types, without breaking runtime behavior.
319-
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals)_.
319+
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
320320
3. Changes that we do not expect to impact the vast majority of users in practice.
321321

322322
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting Security Issues
44

5-
This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
5+
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
66

7-
To report a security issue, please contact the Stainless team at security@stainlessapi.com.
7+
To report a security issue, please contact the Stainless team at security@stainless.com.
88

99
## Responsible Disclosure
1010

api.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Types:
2323
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionSystemMessageParam</a></code>
2424
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionTool</a></code>
2525
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionToolMessageParam</a></code>
26+
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionStructuredMessageImageURL</a></code>
27+
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionStructuredMessageText</a></code>
2628
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionUsage</a></code>
2729
- <code><a href="./src/resources/chat/completions.ts">ChatCompletionUserMessageParam</a></code>
2830

@@ -87,6 +89,26 @@ Methods:
8789
- <code title="get /finetune/download">client.fineTune.<a href="./src/resources/fine-tune.ts">download</a>({ ...params }) -> FineTuneDownloadResponse</code>
8890
- <code title="get /fine-tunes/{id}/events">client.fineTune.<a href="./src/resources/fine-tune.ts">listEvents</a>(id) -> FineTuneEvent</code>
8991

92+
# CodeInterpreter
93+
94+
Types:
95+
96+
- <code><a href="./src/resources/code-interpreter/code-interpreter.ts">ExecuteResponse</a></code>
97+
98+
Methods:
99+
100+
- <code title="post /tci/execute">client.codeInterpreter.<a href="./src/resources/code-interpreter/code-interpreter.ts">execute</a>({ ...params }) -> ExecuteResponse</code>
101+
102+
## Sessions
103+
104+
Types:
105+
106+
- <code><a href="./src/resources/code-interpreter/sessions.ts">SessionListResponse</a></code>
107+
108+
Methods:
109+
110+
- <code title="get /tci/sessions">client.codeInterpreter.sessions.<a href="./src/resources/code-interpreter/sessions.ts">list</a>() -> SessionListResponse</code>
111+
90112
# Images
91113

92114
Types:
@@ -97,12 +119,63 @@ Methods:
97119

98120
- <code title="post /images/generations">client.images.<a href="./src/resources/images.ts">create</a>({ ...params }) -> ImageFile</code>
99121

122+
# Audio
123+
124+
Types:
125+
126+
- <code><a href="./src/resources/audio.ts">AudioFile</a></code>
127+
128+
Methods:
129+
130+
- <code title="post /audio/speech">client.audio.<a href="./src/resources/audio.ts">create</a>({ ...params }) -> Response</code>
131+
100132
# Models
101133

102134
Types:
103135

104136
- <code><a href="./src/resources/models.ts">ModelListResponse</a></code>
137+
- <code><a href="./src/resources/models.ts">ModelUploadResponse</a></code>
105138

106139
Methods:
107140

108141
- <code title="get /models">client.models.<a href="./src/resources/models.ts">list</a>() -> ModelListResponse</code>
142+
- <code title="post /models">client.models.<a href="./src/resources/models.ts">upload</a>({ ...params }) -> ModelUploadResponse</code>
143+
144+
# Jobs
145+
146+
Types:
147+
148+
- <code><a href="./src/resources/jobs.ts">JobRetrieveResponse</a></code>
149+
- <code><a href="./src/resources/jobs.ts">JobListResponse</a></code>
150+
151+
Methods:
152+
153+
- <code title="get /jobs/{jobId}">client.jobs.<a href="./src/resources/jobs.ts">retrieve</a>(jobId) -> JobRetrieveResponse</code>
154+
- <code title="get /jobs">client.jobs.<a href="./src/resources/jobs.ts">list</a>() -> JobListResponse</code>
155+
156+
# Endpoints
157+
158+
Types:
159+
160+
- <code><a href="./src/resources/endpoints.ts">EndpointCreateResponse</a></code>
161+
- <code><a href="./src/resources/endpoints.ts">EndpointRetrieveResponse</a></code>
162+
- <code><a href="./src/resources/endpoints.ts">EndpointUpdateResponse</a></code>
163+
- <code><a href="./src/resources/endpoints.ts">EndpointListResponse</a></code>
164+
165+
Methods:
166+
167+
- <code title="post /endpoints">client.endpoints.<a href="./src/resources/endpoints.ts">create</a>({ ...params }) -> EndpointCreateResponse</code>
168+
- <code title="get /endpoints/{endpointId}">client.endpoints.<a href="./src/resources/endpoints.ts">retrieve</a>(endpointId) -> EndpointRetrieveResponse</code>
169+
- <code title="patch /endpoints/{endpointId}">client.endpoints.<a href="./src/resources/endpoints.ts">update</a>(endpointId, { ...params }) -> EndpointUpdateResponse</code>
170+
- <code title="get /endpoints">client.endpoints.<a href="./src/resources/endpoints.ts">list</a>({ ...params }) -> EndpointListResponse</code>
171+
- <code title="delete /endpoints/{endpointId}">client.endpoints.<a href="./src/resources/endpoints.ts">delete</a>(endpointId) -> void</code>
172+
173+
# Hardware
174+
175+
Types:
176+
177+
- <code><a href="./src/resources/hardware.ts">HardwareListResponse</a></code>
178+
179+
Methods:
180+
181+
- <code title="get /hardware">client.hardware.<a href="./src/resources/hardware.ts">list</a>({ ...params }) -> HardwareListResponse</code>

0 commit comments

Comments
 (0)