@@ -14,14 +14,14 @@ export class Endpoints extends APIResource {
1414 *
1515 * @example
1616 * ```ts
17- * const endpoint = await client.endpoints.create({
17+ * const dedicatedEndpoint = await client.endpoints.create({
1818 * autoscaling: { max_replicas: 5, min_replicas: 2 },
1919 * hardware: '1x_nvidia_a100_80gb_sxm',
2020 * model: 'meta-llama/Llama-3-8b-chat-hf',
2121 * });
2222 * ```
2323 */
24- create ( body : EndpointCreateParams , options ?: RequestOptions ) : APIPromise < EndpointCreateResponse > {
24+ create ( body : EndpointCreateParams , options ?: RequestOptions ) : APIPromise < DedicatedEndpoint > {
2525 return this . _client . post ( '/endpoints' , { body, ...options } ) ;
2626 }
2727
@@ -31,12 +31,12 @@ export class Endpoints extends APIResource {
3131 *
3232 * @example
3333 * ```ts
34- * const endpoint = await client.endpoints.retrieve(
34+ * const dedicatedEndpoint = await client.endpoints.retrieve(
3535 * 'endpoint-d23901de-ef8f-44bf-b3e7-de9c1ca8f2d7',
3636 * );
3737 * ```
3838 */
39- retrieve ( endpointID : string , options ?: RequestOptions ) : APIPromise < EndpointRetrieveResponse > {
39+ retrieve ( endpointID : string , options ?: RequestOptions ) : APIPromise < DedicatedEndpoint > {
4040 return this . _client . get ( path `/endpoints/${ endpointID } ` , options ) ;
4141 }
4242
@@ -46,7 +46,7 @@ export class Endpoints extends APIResource {
4646 *
4747 * @example
4848 * ```ts
49- * const endpoint = await client.endpoints.update(
49+ * const dedicatedEndpoint = await client.endpoints.update(
5050 * 'endpoint-d23901de-ef8f-44bf-b3e7-de9c1ca8f2d7',
5151 * );
5252 * ```
@@ -55,7 +55,7 @@ export class Endpoints extends APIResource {
5555 endpointID : string ,
5656 body : EndpointUpdateParams ,
5757 options ?: RequestOptions ,
58- ) : APIPromise < EndpointUpdateResponse > {
58+ ) : APIPromise < DedicatedEndpoint > {
5959 return this . _client . patch ( path `/endpoints/${ endpointID } ` , { body, ...options } ) ;
6060 }
6161
@@ -111,127 +111,7 @@ export interface Autoscaling {
111111/**
112112 * Details about a dedicated endpoint deployment
113113 */
114- export interface EndpointCreateResponse {
115- /**
116- * Unique identifier for the endpoint
117- */
118- id : string ;
119-
120- /**
121- * Configuration for automatic scaling of the endpoint
122- */
123- autoscaling : Autoscaling ;
124-
125- /**
126- * Timestamp when the endpoint was created
127- */
128- created_at : string ;
129-
130- /**
131- * Human-readable name for the endpoint
132- */
133- display_name : string ;
134-
135- /**
136- * The hardware configuration used for this endpoint
137- */
138- hardware : string ;
139-
140- /**
141- * The model deployed on this endpoint
142- */
143- model : string ;
144-
145- /**
146- * System name for the endpoint
147- */
148- name : string ;
149-
150- /**
151- * The type of object
152- */
153- object : 'endpoint' ;
154-
155- /**
156- * The owner of this endpoint
157- */
158- owner : string ;
159-
160- /**
161- * Current state of the endpoint
162- */
163- state : 'PENDING' | 'STARTING' | 'STARTED' | 'STOPPING' | 'STOPPED' | 'ERROR' ;
164-
165- /**
166- * The type of endpoint
167- */
168- type : 'dedicated' ;
169- }
170-
171- /**
172- * Details about a dedicated endpoint deployment
173- */
174- export interface EndpointRetrieveResponse {
175- /**
176- * Unique identifier for the endpoint
177- */
178- id : string ;
179-
180- /**
181- * Configuration for automatic scaling of the endpoint
182- */
183- autoscaling : Autoscaling ;
184-
185- /**
186- * Timestamp when the endpoint was created
187- */
188- created_at : string ;
189-
190- /**
191- * Human-readable name for the endpoint
192- */
193- display_name : string ;
194-
195- /**
196- * The hardware configuration used for this endpoint
197- */
198- hardware : string ;
199-
200- /**
201- * The model deployed on this endpoint
202- */
203- model : string ;
204-
205- /**
206- * System name for the endpoint
207- */
208- name : string ;
209-
210- /**
211- * The type of object
212- */
213- object : 'endpoint' ;
214-
215- /**
216- * The owner of this endpoint
217- */
218- owner : string ;
219-
220- /**
221- * Current state of the endpoint
222- */
223- state : 'PENDING' | 'STARTING' | 'STARTED' | 'STOPPING' | 'STOPPED' | 'ERROR' ;
224-
225- /**
226- * The type of endpoint
227- */
228- type : 'dedicated' ;
229- }
230-
231- /**
232- * Details about a dedicated endpoint deployment
233- */
234- export interface EndpointUpdateResponse {
114+ export interface DedicatedEndpoint {
235115 /**
236116 * Unique identifier for the endpoint
237117 */
@@ -418,9 +298,7 @@ export interface EndpointListParams {
418298export declare namespace Endpoints {
419299 export {
420300 type Autoscaling as Autoscaling ,
421- type EndpointCreateResponse as EndpointCreateResponse ,
422- type EndpointRetrieveResponse as EndpointRetrieveResponse ,
423- type EndpointUpdateResponse as EndpointUpdateResponse ,
301+ type DedicatedEndpoint as DedicatedEndpoint ,
424302 type EndpointListResponse as EndpointListResponse ,
425303 type EndpointCreateParams as EndpointCreateParams ,
426304 type EndpointUpdateParams as EndpointUpdateParams ,
0 commit comments