-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodels.ts
57 lines (38 loc) · 1.16 KB
/
models.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
export class Models extends APIResource {
/**
* Lists all of Together's open-source models
*/
list(options?: Core.RequestOptions): Core.APIPromise<ModelListResponse> {
return this._client.get('/models', options);
}
}
export type ModelListResponse = Array<ModelListResponse.ModelListResponseItem>;
export namespace ModelListResponse {
export interface ModelListResponseItem {
id: string;
created: number;
object: string;
type: 'chat' | 'language' | 'code' | 'image' | 'embedding' | 'moderation' | 'rerank';
context_length?: number;
display_name?: string;
license?: string;
link?: string;
organization?: string;
pricing?: ModelListResponseItem.Pricing;
}
export namespace ModelListResponseItem {
export interface Pricing {
base: number;
finetune: number;
hourly: number;
input: number;
output: number;
}
}
}
export declare namespace Models {
export { type ModelListResponse as ModelListResponse };
}