openai 4.96.2 → 4.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +1 -1
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audio/speech.d.ts +13 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +12 -0
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +12 -0
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.ts +9 -0
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.ts +8 -0
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/beta/assistants.d.ts +36 -0
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +28 -0
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +28 -0
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.ts +6 -0
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +6 -0
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +6 -0
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts +6 -0
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +6 -0
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +6 -0
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/threads/messages.d.ts +43 -0
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +33 -0
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +33 -0
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts +52 -0
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +24 -0
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +24 -0
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts +21 -0
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.ts +33 -0
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +21 -0
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +21 -0
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.ts +42 -4
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +20 -0
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +20 -0
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.d.ts +10 -0
- package/resources/chat/completions/messages.d.ts.map +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.ts +8 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/embeddings.d.ts +9 -0
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +9 -0
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +9 -0
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.d.ts +62 -533
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/index.d.ts +1 -1
- package/resources/evals/index.d.ts.map +1 -1
- package/resources/evals/index.js.map +1 -1
- package/resources/evals/index.mjs.map +1 -1
- package/resources/fine-tuning/alpha/alpha.d.ts +10 -0
- package/resources/fine-tuning/alpha/alpha.d.ts.map +1 -0
- package/resources/fine-tuning/alpha/alpha.js +39 -0
- package/resources/fine-tuning/alpha/alpha.js.map +1 -0
- package/resources/fine-tuning/alpha/alpha.mjs +12 -0
- package/resources/fine-tuning/alpha/alpha.mjs.map +1 -0
- package/resources/fine-tuning/alpha/graders.d.ts +107 -0
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -0
- package/resources/fine-tuning/alpha/graders.js +50 -0
- package/resources/fine-tuning/alpha/graders.js.map +1 -0
- package/resources/fine-tuning/alpha/graders.mjs +46 -0
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -0
- package/resources/fine-tuning/alpha/index.d.ts +3 -0
- package/resources/fine-tuning/alpha/index.d.ts.map +1 -0
- package/resources/fine-tuning/alpha/index.js +9 -0
- package/resources/fine-tuning/alpha/index.js.map +1 -0
- package/resources/fine-tuning/alpha/index.mjs +4 -0
- package/resources/fine-tuning/alpha/index.mjs.map +1 -0
- package/resources/fine-tuning/alpha.d.ts +2 -0
- package/resources/fine-tuning/alpha.d.ts.map +1 -0
- package/resources/fine-tuning/alpha.js +19 -0
- package/resources/fine-tuning/alpha.js.map +1 -0
- package/resources/fine-tuning/alpha.mjs +3 -0
- package/resources/fine-tuning/alpha.mjs.map +1 -0
- package/resources/fine-tuning/checkpoints/permissions.d.ts +28 -0
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +20 -0
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +20 -0
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/fine-tuning.d.ts +8 -0
- package/resources/fine-tuning/fine-tuning.d.ts.map +1 -1
- package/resources/fine-tuning/fine-tuning.js +8 -0
- package/resources/fine-tuning/fine-tuning.js.map +1 -1
- package/resources/fine-tuning/fine-tuning.mjs +8 -0
- package/resources/fine-tuning/fine-tuning.mjs.map +1 -1
- package/resources/fine-tuning/index.d.ts +2 -0
- package/resources/fine-tuning/index.d.ts.map +1 -1
- package/resources/fine-tuning/index.js +11 -7
- package/resources/fine-tuning/index.js.map +1 -1
- package/resources/fine-tuning/index.mjs +2 -0
- package/resources/fine-tuning/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.d.ts +10 -0
- package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts +80 -146
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +48 -0
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +48 -0
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/fine-tuning/methods.d.ts +120 -0
- package/resources/fine-tuning/methods.d.ts.map +1 -0
- package/resources/fine-tuning/methods.js +9 -0
- package/resources/fine-tuning/methods.js.map +1 -0
- package/resources/fine-tuning/methods.mjs +5 -0
- package/resources/fine-tuning/methods.mjs.map +1 -0
- package/resources/graders/grader-models.d.ts +234 -0
- package/resources/graders/grader-models.d.ts.map +1 -0
- package/resources/graders/grader-models.js +9 -0
- package/resources/graders/grader-models.js.map +1 -0
- package/resources/graders/grader-models.mjs +5 -0
- package/resources/graders/grader-models.mjs.map +1 -0
- package/resources/graders/graders.d.ts +10 -0
- package/resources/graders/graders.d.ts.map +1 -0
- package/resources/graders/graders.js +39 -0
- package/resources/graders/graders.js.map +1 -0
- package/resources/graders/graders.mjs +12 -0
- package/resources/graders/graders.mjs.map +1 -0
- package/resources/graders/index.d.ts +3 -0
- package/resources/graders/index.d.ts.map +1 -0
- package/resources/graders/index.js +9 -0
- package/resources/graders/index.js.map +1 -0
- package/resources/graders/index.mjs +4 -0
- package/resources/graders/index.mjs.map +1 -0
- package/resources/graders.d.ts +2 -0
- package/resources/graders.d.ts.map +1 -0
- package/resources/graders.js +19 -0
- package/resources/graders.js.map +1 -0
- package/resources/graders.mjs +3 -0
- package/resources/graders.mjs.map +1 -0
- package/resources/images.d.ts +40 -5
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +22 -0
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +22 -0
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +10 -0
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/responses.d.ts +70 -29
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +7 -0
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +7 -0
- package/resources/responses/responses.mjs.map +1 -1
- package/src/index.ts +5 -6
- package/src/resources/audio/speech.ts +13 -1
- package/src/resources/audio/transcriptions.ts +9 -0
- package/src/resources/audio/translations.ts +8 -0
- package/src/resources/beta/assistants.ts +36 -0
- package/src/resources/beta/realtime/sessions.ts +6 -0
- package/src/resources/beta/realtime/transcription-sessions.ts +6 -0
- package/src/resources/beta/threads/messages.ts +43 -0
- package/src/resources/beta/threads/runs/runs.ts +52 -0
- package/src/resources/beta/threads/runs/steps.ts +21 -0
- package/src/resources/beta/threads/threads.ts +33 -0
- package/src/resources/chat/completions/completions.ts +42 -4
- package/src/resources/chat/completions/messages.ts +10 -0
- package/src/resources/completions.ts +8 -0
- package/src/resources/embeddings.ts +9 -0
- package/src/resources/evals/evals.ts +78 -654
- package/src/resources/evals/index.ts +0 -3
- package/src/resources/fine-tuning/alpha/alpha.ts +27 -0
- package/src/resources/fine-tuning/alpha/graders.ts +168 -0
- package/src/resources/fine-tuning/alpha/index.ts +10 -0
- package/src/resources/fine-tuning/alpha.ts +3 -0
- package/src/resources/fine-tuning/checkpoints/permissions.ts +28 -0
- package/src/resources/fine-tuning/fine-tuning.ts +28 -0
- package/src/resources/fine-tuning/index.ts +10 -0
- package/src/resources/fine-tuning/jobs/checkpoints.ts +10 -0
- package/src/resources/fine-tuning/jobs/jobs.ts +86 -162
- package/src/resources/fine-tuning/methods.ts +152 -0
- package/src/resources/graders/grader-models.ts +296 -0
- package/src/resources/graders/graders.ts +31 -0
- package/src/resources/graders/index.ts +12 -0
- package/src/resources/graders.ts +3 -0
- package/src/resources/images.ts +41 -5
- package/src/resources/index.ts +1 -3
- package/src/resources/responses/input-items.ts +10 -0
- package/src/resources/responses/responses.ts +72 -29
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -17,6 +17,14 @@ export class Jobs extends APIResource {
|
|
|
17
17
|
* of the fine-tuned models once complete.
|
|
18
18
|
*
|
|
19
19
|
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const fineTuningJob = await client.fineTuning.jobs.create({
|
|
24
|
+
* model: 'gpt-4o-mini',
|
|
25
|
+
* training_file: 'file-abc123',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
20
28
|
*/
|
|
21
29
|
create(body, options) {
|
|
22
30
|
return this._client.post('/fine_tuning/jobs', { body, ...options });
|
|
@@ -25,6 +33,13 @@ export class Jobs extends APIResource {
|
|
|
25
33
|
* Get info about a fine-tuning job.
|
|
26
34
|
*
|
|
27
35
|
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const fineTuningJob = await client.fineTuning.jobs.retrieve(
|
|
40
|
+
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
28
43
|
*/
|
|
29
44
|
retrieve(fineTuningJobId, options) {
|
|
30
45
|
return this._client.get(`/fine_tuning/jobs/${fineTuningJobId}`, options);
|
|
@@ -37,6 +52,13 @@ export class Jobs extends APIResource {
|
|
|
37
52
|
}
|
|
38
53
|
/**
|
|
39
54
|
* Immediately cancel a fine-tune job.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const fineTuningJob = await client.fineTuning.jobs.cancel(
|
|
59
|
+
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
40
62
|
*/
|
|
41
63
|
cancel(fineTuningJobId, options) {
|
|
42
64
|
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`, options);
|
|
@@ -50,6 +72,32 @@ export class Jobs extends APIResource {
|
|
|
50
72
|
...options,
|
|
51
73
|
});
|
|
52
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Pause a fine-tune job.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const fineTuningJob = await client.fineTuning.jobs.pause(
|
|
81
|
+
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
|
|
82
|
+
* );
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
pause(fineTuningJobId, options) {
|
|
86
|
+
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/pause`, options);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Resume a fine-tune job.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const fineTuningJob = await client.fineTuning.jobs.resume(
|
|
94
|
+
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
|
|
95
|
+
* );
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
resume(fineTuningJobId, options) {
|
|
99
|
+
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/resume`, options);
|
|
100
|
+
}
|
|
53
101
|
}
|
|
54
102
|
export class FineTuningJobsPage extends CursorPage {
|
|
55
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/fine-tuning/jobs/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../../src/resources/fine-tuning/jobs/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,cAAc;OACnB,EAEL,WAAW,EAEX,4BAA4B,GAC7B;OACM,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8IzF,CAAC;IA5IC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAqB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,eAAuB,EAAE,OAA6B;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ACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,UAAyB;CAAG;AAEpE,MAAM,OAAO,uBAAwB,SAAQ,UAA8B;CAAG;AA0c9E,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAC7C,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AACvD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,4BAA4B,GAAG,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as GraderModelsAPI from "../graders/grader-models.js";
|
|
3
|
+
export declare class Methods extends APIResource {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The hyperparameters used for the DPO fine-tuning job.
|
|
7
|
+
*/
|
|
8
|
+
export interface DpoHyperparameters {
|
|
9
|
+
/**
|
|
10
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
11
|
+
* parameters are updated less frequently, but with lower variance.
|
|
12
|
+
*/
|
|
13
|
+
batch_size?: 'auto' | number;
|
|
14
|
+
/**
|
|
15
|
+
* The beta value for the DPO method. A higher beta value will increase the weight
|
|
16
|
+
* of the penalty between the policy and reference model.
|
|
17
|
+
*/
|
|
18
|
+
beta?: 'auto' | number;
|
|
19
|
+
/**
|
|
20
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
21
|
+
* avoid overfitting.
|
|
22
|
+
*/
|
|
23
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
24
|
+
/**
|
|
25
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
26
|
+
* through the training dataset.
|
|
27
|
+
*/
|
|
28
|
+
n_epochs?: 'auto' | number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Configuration for the DPO fine-tuning method.
|
|
32
|
+
*/
|
|
33
|
+
export interface DpoMethod {
|
|
34
|
+
/**
|
|
35
|
+
* The hyperparameters used for the DPO fine-tuning job.
|
|
36
|
+
*/
|
|
37
|
+
hyperparameters?: DpoHyperparameters;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The hyperparameters used for the reinforcement fine-tuning job.
|
|
41
|
+
*/
|
|
42
|
+
export interface ReinforcementHyperparameters {
|
|
43
|
+
/**
|
|
44
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
45
|
+
* parameters are updated less frequently, but with lower variance.
|
|
46
|
+
*/
|
|
47
|
+
batch_size?: 'auto' | number;
|
|
48
|
+
/**
|
|
49
|
+
* Multiplier on amount of compute used for exploring search space during training.
|
|
50
|
+
*/
|
|
51
|
+
compute_multiplier?: 'auto' | number;
|
|
52
|
+
/**
|
|
53
|
+
* The number of training steps between evaluation runs.
|
|
54
|
+
*/
|
|
55
|
+
eval_interval?: 'auto' | number;
|
|
56
|
+
/**
|
|
57
|
+
* Number of evaluation samples to generate per training step.
|
|
58
|
+
*/
|
|
59
|
+
eval_samples?: 'auto' | number;
|
|
60
|
+
/**
|
|
61
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
62
|
+
* avoid overfitting.
|
|
63
|
+
*/
|
|
64
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
65
|
+
/**
|
|
66
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
67
|
+
* through the training dataset.
|
|
68
|
+
*/
|
|
69
|
+
n_epochs?: 'auto' | number;
|
|
70
|
+
/**
|
|
71
|
+
* Level of reasoning effort.
|
|
72
|
+
*/
|
|
73
|
+
reasoning_effort?: 'default' | 'low' | 'medium' | 'high';
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Configuration for the reinforcement fine-tuning method.
|
|
77
|
+
*/
|
|
78
|
+
export interface ReinforcementMethod {
|
|
79
|
+
/**
|
|
80
|
+
* The grader used for the fine-tuning job.
|
|
81
|
+
*/
|
|
82
|
+
grader: GraderModelsAPI.StringCheckGrader | GraderModelsAPI.TextSimilarityGrader | GraderModelsAPI.PythonGrader | GraderModelsAPI.ScoreModelGrader | GraderModelsAPI.MultiGrader;
|
|
83
|
+
/**
|
|
84
|
+
* The hyperparameters used for the reinforcement fine-tuning job.
|
|
85
|
+
*/
|
|
86
|
+
hyperparameters?: ReinforcementHyperparameters;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* The hyperparameters used for the fine-tuning job.
|
|
90
|
+
*/
|
|
91
|
+
export interface SupervisedHyperparameters {
|
|
92
|
+
/**
|
|
93
|
+
* Number of examples in each batch. A larger batch size means that model
|
|
94
|
+
* parameters are updated less frequently, but with lower variance.
|
|
95
|
+
*/
|
|
96
|
+
batch_size?: 'auto' | number;
|
|
97
|
+
/**
|
|
98
|
+
* Scaling factor for the learning rate. A smaller learning rate may be useful to
|
|
99
|
+
* avoid overfitting.
|
|
100
|
+
*/
|
|
101
|
+
learning_rate_multiplier?: 'auto' | number;
|
|
102
|
+
/**
|
|
103
|
+
* The number of epochs to train the model for. An epoch refers to one full cycle
|
|
104
|
+
* through the training dataset.
|
|
105
|
+
*/
|
|
106
|
+
n_epochs?: 'auto' | number;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Configuration for the supervised fine-tuning method.
|
|
110
|
+
*/
|
|
111
|
+
export interface SupervisedMethod {
|
|
112
|
+
/**
|
|
113
|
+
* The hyperparameters used for the fine-tuning job.
|
|
114
|
+
*/
|
|
115
|
+
hyperparameters?: SupervisedHyperparameters;
|
|
116
|
+
}
|
|
117
|
+
export declare namespace Methods {
|
|
118
|
+
export { type DpoHyperparameters as DpoHyperparameters, type DpoMethod as DpoMethod, type ReinforcementHyperparameters as ReinforcementHyperparameters, type ReinforcementMethod as ReinforcementMethod, type SupervisedHyperparameters as SupervisedHyperparameters, type SupervisedMethod as SupervisedMethod, };
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.d.ts","sourceRoot":"","sources":["../../src/resources/fine-t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C,eAAe,CAAC,WAAW,CAAC;IAEhC;;OAEG;IACH,eAAe,CAAC,EAAE,4BAA4B,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC;CAC7C;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Methods = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class Methods extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.Methods = Methods;
|
|
9
|
+
//# sourceMappingURL=methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,OAAQ,SAAQ,sBAAW;CAAG;AAA3C,0BAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods.mjs","sourceRoot":"","sources":["../../src/resources/fine-tuning/methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as ResponsesAPI from "../responses/responses.js";
|
|
3
|
+
export declare class GraderModels extends APIResource {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A LabelModelGrader object which uses a model to assign labels to each item in
|
|
7
|
+
* the evaluation.
|
|
8
|
+
*/
|
|
9
|
+
export interface LabelModelGrader {
|
|
10
|
+
input: Array<LabelModelGrader.Input>;
|
|
11
|
+
/**
|
|
12
|
+
* The labels to assign to each item in the evaluation.
|
|
13
|
+
*/
|
|
14
|
+
labels: Array<string>;
|
|
15
|
+
/**
|
|
16
|
+
* The model to use for the evaluation. Must support structured outputs.
|
|
17
|
+
*/
|
|
18
|
+
model: string;
|
|
19
|
+
/**
|
|
20
|
+
* The name of the grader.
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The labels that indicate a passing result. Must be a subset of labels.
|
|
25
|
+
*/
|
|
26
|
+
passing_labels: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* The object type, which is always `label_model`.
|
|
29
|
+
*/
|
|
30
|
+
type: 'label_model';
|
|
31
|
+
}
|
|
32
|
+
export declare namespace LabelModelGrader {
|
|
33
|
+
/**
|
|
34
|
+
* A message input to the model with a role indicating instruction following
|
|
35
|
+
* hierarchy. Instructions given with the `developer` or `system` role take
|
|
36
|
+
* precedence over instructions given with the `user` role. Messages with the
|
|
37
|
+
* `assistant` role are presumed to have been generated by the model in previous
|
|
38
|
+
* interactions.
|
|
39
|
+
*/
|
|
40
|
+
interface Input {
|
|
41
|
+
/**
|
|
42
|
+
* Text inputs to the model - can contain template strings.
|
|
43
|
+
*/
|
|
44
|
+
content: string | ResponsesAPI.ResponseInputText | Input.OutputText;
|
|
45
|
+
/**
|
|
46
|
+
* The role of the message input. One of `user`, `assistant`, `system`, or
|
|
47
|
+
* `developer`.
|
|
48
|
+
*/
|
|
49
|
+
role: 'user' | 'assistant' | 'system' | 'developer';
|
|
50
|
+
/**
|
|
51
|
+
* The type of the message input. Always `message`.
|
|
52
|
+
*/
|
|
53
|
+
type?: 'message';
|
|
54
|
+
}
|
|
55
|
+
namespace Input {
|
|
56
|
+
/**
|
|
57
|
+
* A text output from the model.
|
|
58
|
+
*/
|
|
59
|
+
interface OutputText {
|
|
60
|
+
/**
|
|
61
|
+
* The text output from the model.
|
|
62
|
+
*/
|
|
63
|
+
text: string;
|
|
64
|
+
/**
|
|
65
|
+
* The type of the output text. Always `output_text`.
|
|
66
|
+
*/
|
|
67
|
+
type: 'output_text';
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A MultiGrader object combines the output of multiple graders to produce a single
|
|
73
|
+
* score.
|
|
74
|
+
*/
|
|
75
|
+
export interface MultiGrader {
|
|
76
|
+
/**
|
|
77
|
+
* A formula to calculate the output based on grader results.
|
|
78
|
+
*/
|
|
79
|
+
calculate_output: string;
|
|
80
|
+
graders: Record<string, StringCheckGrader | TextSimilarityGrader | PythonGrader | ScoreModelGrader | LabelModelGrader>;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the grader.
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
/**
|
|
86
|
+
* The type of grader.
|
|
87
|
+
*/
|
|
88
|
+
type: 'multi';
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A PythonGrader object that runs a python script on the input.
|
|
92
|
+
*/
|
|
93
|
+
export interface PythonGrader {
|
|
94
|
+
/**
|
|
95
|
+
* The name of the grader.
|
|
96
|
+
*/
|
|
97
|
+
name: string;
|
|
98
|
+
/**
|
|
99
|
+
* The source code of the python script.
|
|
100
|
+
*/
|
|
101
|
+
source: string;
|
|
102
|
+
/**
|
|
103
|
+
* The object type, which is always `python`.
|
|
104
|
+
*/
|
|
105
|
+
type: 'python';
|
|
106
|
+
/**
|
|
107
|
+
* The image tag to use for the python script.
|
|
108
|
+
*/
|
|
109
|
+
image_tag?: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A ScoreModelGrader object that uses a model to assign a score to the input.
|
|
113
|
+
*/
|
|
114
|
+
export interface ScoreModelGrader {
|
|
115
|
+
/**
|
|
116
|
+
* The input text. This may include template strings.
|
|
117
|
+
*/
|
|
118
|
+
input: Array<ScoreModelGrader.Input>;
|
|
119
|
+
/**
|
|
120
|
+
* The model to use for the evaluation.
|
|
121
|
+
*/
|
|
122
|
+
model: string;
|
|
123
|
+
/**
|
|
124
|
+
* The name of the grader.
|
|
125
|
+
*/
|
|
126
|
+
name: string;
|
|
127
|
+
/**
|
|
128
|
+
* The object type, which is always `score_model`.
|
|
129
|
+
*/
|
|
130
|
+
type: 'score_model';
|
|
131
|
+
/**
|
|
132
|
+
* The range of the score. Defaults to `[0, 1]`.
|
|
133
|
+
*/
|
|
134
|
+
range?: Array<number>;
|
|
135
|
+
/**
|
|
136
|
+
* The sampling parameters for the model.
|
|
137
|
+
*/
|
|
138
|
+
sampling_params?: unknown;
|
|
139
|
+
}
|
|
140
|
+
export declare namespace ScoreModelGrader {
|
|
141
|
+
/**
|
|
142
|
+
* A message input to the model with a role indicating instruction following
|
|
143
|
+
* hierarchy. Instructions given with the `developer` or `system` role take
|
|
144
|
+
* precedence over instructions given with the `user` role. Messages with the
|
|
145
|
+
* `assistant` role are presumed to have been generated by the model in previous
|
|
146
|
+
* interactions.
|
|
147
|
+
*/
|
|
148
|
+
interface Input {
|
|
149
|
+
/**
|
|
150
|
+
* Text inputs to the model - can contain template strings.
|
|
151
|
+
*/
|
|
152
|
+
content: string | ResponsesAPI.ResponseInputText | Input.OutputText;
|
|
153
|
+
/**
|
|
154
|
+
* The role of the message input. One of `user`, `assistant`, `system`, or
|
|
155
|
+
* `developer`.
|
|
156
|
+
*/
|
|
157
|
+
role: 'user' | 'assistant' | 'system' | 'developer';
|
|
158
|
+
/**
|
|
159
|
+
* The type of the message input. Always `message`.
|
|
160
|
+
*/
|
|
161
|
+
type?: 'message';
|
|
162
|
+
}
|
|
163
|
+
namespace Input {
|
|
164
|
+
/**
|
|
165
|
+
* A text output from the model.
|
|
166
|
+
*/
|
|
167
|
+
interface OutputText {
|
|
168
|
+
/**
|
|
169
|
+
* The text output from the model.
|
|
170
|
+
*/
|
|
171
|
+
text: string;
|
|
172
|
+
/**
|
|
173
|
+
* The type of the output text. Always `output_text`.
|
|
174
|
+
*/
|
|
175
|
+
type: 'output_text';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* A StringCheckGrader object that performs a string comparison between input and
|
|
181
|
+
* reference using a specified operation.
|
|
182
|
+
*/
|
|
183
|
+
export interface StringCheckGrader {
|
|
184
|
+
/**
|
|
185
|
+
* The input text. This may include template strings.
|
|
186
|
+
*/
|
|
187
|
+
input: string;
|
|
188
|
+
/**
|
|
189
|
+
* The name of the grader.
|
|
190
|
+
*/
|
|
191
|
+
name: string;
|
|
192
|
+
/**
|
|
193
|
+
* The string check operation to perform. One of `eq`, `ne`, `like`, or `ilike`.
|
|
194
|
+
*/
|
|
195
|
+
operation: 'eq' | 'ne' | 'like' | 'ilike';
|
|
196
|
+
/**
|
|
197
|
+
* The reference text. This may include template strings.
|
|
198
|
+
*/
|
|
199
|
+
reference: string;
|
|
200
|
+
/**
|
|
201
|
+
* The object type, which is always `string_check`.
|
|
202
|
+
*/
|
|
203
|
+
type: 'string_check';
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* A TextSimilarityGrader object which grades text based on similarity metrics.
|
|
207
|
+
*/
|
|
208
|
+
export interface TextSimilarityGrader {
|
|
209
|
+
/**
|
|
210
|
+
* The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`,
|
|
211
|
+
* `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
|
|
212
|
+
*/
|
|
213
|
+
evaluation_metric: 'fuzzy_match' | 'bleu' | 'gleu' | 'meteor' | 'rouge_1' | 'rouge_2' | 'rouge_3' | 'rouge_4' | 'rouge_5' | 'rouge_l';
|
|
214
|
+
/**
|
|
215
|
+
* The text being graded.
|
|
216
|
+
*/
|
|
217
|
+
input: string;
|
|
218
|
+
/**
|
|
219
|
+
* The name of the grader.
|
|
220
|
+
*/
|
|
221
|
+
name: string;
|
|
222
|
+
/**
|
|
223
|
+
* The text being graded against.
|
|
224
|
+
*/
|
|
225
|
+
reference: string;
|
|
226
|
+
/**
|
|
227
|
+
* The type of grader.
|
|
228
|
+
*/
|
|
229
|
+
type: 'text_similarity';
|
|
230
|
+
}
|
|
231
|
+
export declare namespace GraderModels {
|
|
232
|
+
export { type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, };
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=grader-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grader-models.d.ts","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,YAAa,SAAQ,WAAW;CAAG;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAErC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;I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Ed;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GraderModels = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class GraderModels extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.GraderModels = GraderModels;
|
|
9
|
+
//# sourceMappingURL=grader-models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grader-models.js","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,YAAa,SAAQ,sBAAW;CAAG;AAAhD,oCAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grader-models.mjs","sourceRoot":"","sources":["../../src/resources/graders/grader-models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,YAAa,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as GraderModelsAPI from "./grader-models.js";
|
|
3
|
+
import { GraderModels, LabelModelGrader, MultiGrader, PythonGrader, ScoreModelGrader, StringCheckGrader, TextSimilarityGrader } from "./grader-models.js";
|
|
4
|
+
export declare class Graders extends APIResource {
|
|
5
|
+
graderModels: GraderModelsAPI.GraderModels;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Graders {
|
|
8
|
+
export { GraderModels as GraderModels, type LabelModelGrader as LabelModelGrader, type MultiGrader as MultiGrader, type PythonGrader as PythonGrader, type ScoreModelGrader as ScoreModelGrader, type StringCheckGrader as StringCheckGrader, type TextSimilarityGrader as TextSimilarityGrader, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=graders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,eAAe,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Graders = void 0;
|
|
28
|
+
const resource_1 = require("../../resource.js");
|
|
29
|
+
const GraderModelsAPI = __importStar(require("./grader-models.js"));
|
|
30
|
+
const grader_models_1 = require("./grader-models.js");
|
|
31
|
+
class Graders extends resource_1.APIResource {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.graderModels = new GraderModelsAPI.GraderModels(this._client);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Graders = Graders;
|
|
38
|
+
Graders.GraderModels = grader_models_1.GraderModels;
|
|
39
|
+
//# sourceMappingURL=graders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.js","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,oEAAmD;AACnD,sDAQyB;AAEzB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,YAAY,GAAG,4BAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import * as GraderModelsAPI from "./grader-models.mjs";
|
|
4
|
+
import { GraderModels, } from "./grader-models.mjs";
|
|
5
|
+
export class Graders extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.graderModels = new GraderModelsAPI.GraderModels(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Graders.GraderModels = GraderModels;
|
|
12
|
+
//# sourceMappingURL=graders.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.mjs","sourceRoot":"","sources":["../../src/resources/graders/graders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,GAOb;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Graders = exports.GraderModels = void 0;
|
|
5
|
+
var grader_models_1 = require("./grader-models.js");
|
|
6
|
+
Object.defineProperty(exports, "GraderModels", { enumerable: true, get: function () { return grader_models_1.GraderModels; } });
|
|
7
|
+
var graders_1 = require("./graders.js");
|
|
8
|
+
Object.defineProperty(exports, "Graders", { enumerable: true, get: function () { return graders_1.Graders; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,wCAAoC;AAA3B,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/graders/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAOb;OACM,EAAE,OAAO,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.d.ts","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":"AAEA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./graders/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=graders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.js","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,qDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graders.mjs","sourceRoot":"","sources":["../src/resources/graders.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|