Skip to content

Commit cf33c3c

Browse files
feat: internal: Add code samples to deployments features
1 parent 169980c commit cf33c3c

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 75
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-8a76fff2b243efa52f6d90af85d9cb313bfd927d17cb30bd5e3503a3a382a050.yml
3-
openapi_spec_hash: 49b0cace7ee5a8b50781bb8bc73a2258
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-9d21c718836b00960cf34f6a1c14648ebcb1e747fc1a02006c56eaa571e0e261.yml
3+
openapi_spec_hash: b60875195a5f6dd59a2d7c6c75a23a43
44
config_hash: 274ef824891c85af8907a187a0b443f7

src/resources/beta/jig/jig.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ export class Jig extends APIResource {
7676
}
7777

7878
/**
79-
* Retrieve logs from a deployment, optionally filtered by replica ID. Use
80-
* follow=true to stream logs in real-time.
79+
* Retrieve logs from a deployment, optionally filtered by replica ID.
8180
*/
8281
retrieveLogs(
8382
id: string,
@@ -559,7 +558,7 @@ export interface JigDeployParams {
559558
/**
560559
* GPUType specifies the GPU hardware to use (e.g., "h100-80gb").
561560
*/
562-
gpu_type: 'h100-80gb' | ' a100-80gb';
561+
gpu_type: 'h100-80gb' | 'a100-80gb';
563562

564563
/**
565564
* Image is the container image to deploy from registry.together.ai.
@@ -700,11 +699,6 @@ export namespace JigDeployParams {
700699
}
701700

702701
export interface JigRetrieveLogsParams {
703-
/**
704-
* Stream logs in real-time (ndjson format)
705-
*/
706-
follow?: boolean;
707-
708702
/**
709703
* Replica ID to filter logs
710704
*/

tests/api-resources/beta/jig/jig.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,7 @@ describe('resource jig', () => {
110110
test('retrieveLogs: request options and params are passed correctly', async () => {
111111
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
112112
await expect(
113-
client.beta.jig.retrieveLogs(
114-
'id',
115-
{ follow: true, replica_id: 'replica_id' },
116-
{ path: '/_stainless_unknown_path' },
117-
),
113+
client.beta.jig.retrieveLogs('id', { replica_id: 'replica_id' }, { path: '/_stainless_unknown_path' }),
118114
).rejects.toThrow(Together.NotFoundError);
119115
});
120116
});

0 commit comments

Comments
 (0)