notdiamond 2.0.0-rc14 → 2.0.0-rc15
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 +8 -0
- package/package.json +1 -1
- package/resources/model-router.d.mts +2 -3
- package/resources/model-router.d.mts.map +1 -1
- package/resources/model-router.d.ts +2 -3
- package/resources/model-router.d.ts.map +1 -1
- package/resources/model-router.js +2 -3
- package/resources/model-router.js.map +1 -1
- package/resources/model-router.mjs +2 -3
- package/resources/model-router.mjs.map +1 -1
- package/resources/prompt-adaptation.d.mts +6 -32
- package/resources/prompt-adaptation.d.mts.map +1 -1
- package/resources/prompt-adaptation.d.ts +6 -32
- package/resources/prompt-adaptation.d.ts.map +1 -1
- package/resources/prompt-adaptation.js +6 -32
- package/resources/prompt-adaptation.js.map +1 -1
- package/resources/prompt-adaptation.mjs +6 -32
- package/resources/prompt-adaptation.mjs.map +1 -1
- package/src/resources/model-router.ts +2 -3
- package/src/resources/prompt-adaptation.ts +6 -32
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc15 (2025-11-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.0-rc14...v2.0.0-rc15](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc14...v2.0.0-rc15)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([fb34b0d](https://github.com/Not-Diamond/not-diamond-typescript/commit/fb34b0d945db7c91f11afc7780c366381359c036))
|
|
10
|
+
|
|
3
11
|
## 2.0.0-rc14 (2025-11-14)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v2.0.0-rc13...v2.0.0-rc14](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc13...v2.0.0-rc14)
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export declare class ModelRouter extends APIResource {
|
|
|
8
8
|
* algorithm.
|
|
9
9
|
*
|
|
10
10
|
* This endpoint analyzes your messages and returns the best-suited model from your
|
|
11
|
-
* specified
|
|
11
|
+
* specified models. The router considers factors like query complexity, model
|
|
12
12
|
* capabilities, cost, and latency based on your preferences.
|
|
13
13
|
*
|
|
14
14
|
* **Key Features:**
|
|
@@ -17,14 +17,13 @@ export declare class ModelRouter extends APIResource {
|
|
|
17
17
|
* - Support for custom routers trained on your evaluation data
|
|
18
18
|
* - Optional cost/latency optimization
|
|
19
19
|
* - Function calling support for compatible models
|
|
20
|
-
* - Privacy-preserving content hashing
|
|
21
20
|
*
|
|
22
21
|
* **Usage:**
|
|
23
22
|
*
|
|
24
23
|
* 1. Pass your messages in OpenAI format (array of objects with 'role' and
|
|
25
24
|
* 'content')
|
|
26
25
|
* 2. Specify which LLM providers you want to route between
|
|
27
|
-
* 3. Optionally provide a preference_id
|
|
26
|
+
* 3. Optionally provide a preference_id to use a custom router that you've trained
|
|
28
27
|
* 4. Receive a recommended model and session_id
|
|
29
28
|
* 5. Use the session_id to submit feedback and improve routing
|
|
30
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-router.d.mts","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"model-router.d.mts","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;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E,CAAC,GAAG,IAAI,CAAC;IAEjD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;;;;;;;;;;;;OAaG;IACH,UAAiB,kBAAkB;QACjC;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE/B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,CAAC;QAEpB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@ export declare class ModelRouter extends APIResource {
|
|
|
8
8
|
* algorithm.
|
|
9
9
|
*
|
|
10
10
|
* This endpoint analyzes your messages and returns the best-suited model from your
|
|
11
|
-
* specified
|
|
11
|
+
* specified models. The router considers factors like query complexity, model
|
|
12
12
|
* capabilities, cost, and latency based on your preferences.
|
|
13
13
|
*
|
|
14
14
|
* **Key Features:**
|
|
@@ -17,14 +17,13 @@ export declare class ModelRouter extends APIResource {
|
|
|
17
17
|
* - Support for custom routers trained on your evaluation data
|
|
18
18
|
* - Optional cost/latency optimization
|
|
19
19
|
* - Function calling support for compatible models
|
|
20
|
-
* - Privacy-preserving content hashing
|
|
21
20
|
*
|
|
22
21
|
* **Usage:**
|
|
23
22
|
*
|
|
24
23
|
* 1. Pass your messages in OpenAI format (array of objects with 'role' and
|
|
25
24
|
* 'content')
|
|
26
25
|
* 2. Specify which LLM providers you want to route between
|
|
27
|
-
* 3. Optionally provide a preference_id
|
|
26
|
+
* 3. Optionally provide a preference_id to use a custom router that you've trained
|
|
28
27
|
* 4. Receive a recommended model and session_id
|
|
29
28
|
* 5. Use the session_id to submit feedback and improve routing
|
|
30
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-router.d.ts","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"model-router.d.ts","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,WAAW,CACT,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;CAI9C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,8BAA8B,CAAC,QAAQ,CAAC,CAAC;IAE1D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yBAAiB,8BAA8B,CAAC;IAC9C;;;;;;OAMG;IACH,UAAiB,QAAQ;QACvB;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,aAAa,EAAE,KAAK,CAAC,mBAAmB,CAAC,eAAe,GAAG,4BAA4B,CAAC,kBAAkB,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K,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -9,7 +9,7 @@ class ModelRouter extends resource_1.APIResource {
|
|
|
9
9
|
* algorithm.
|
|
10
10
|
*
|
|
11
11
|
* This endpoint analyzes your messages and returns the best-suited model from your
|
|
12
|
-
* specified
|
|
12
|
+
* specified models. The router considers factors like query complexity, model
|
|
13
13
|
* capabilities, cost, and latency based on your preferences.
|
|
14
14
|
*
|
|
15
15
|
* **Key Features:**
|
|
@@ -18,14 +18,13 @@ class ModelRouter extends resource_1.APIResource {
|
|
|
18
18
|
* - Support for custom routers trained on your evaluation data
|
|
19
19
|
* - Optional cost/latency optimization
|
|
20
20
|
* - Function calling support for compatible models
|
|
21
|
-
* - Privacy-preserving content hashing
|
|
22
21
|
*
|
|
23
22
|
* **Usage:**
|
|
24
23
|
*
|
|
25
24
|
* 1. Pass your messages in OpenAI format (array of objects with 'role' and
|
|
26
25
|
* 'content')
|
|
27
26
|
* 2. Specify which LLM providers you want to route between
|
|
28
|
-
* 3. Optionally provide a preference_id
|
|
27
|
+
* 3. Optionally provide a preference_id to use a custom router that you've trained
|
|
29
28
|
* 4. Receive a recommended model and session_id
|
|
30
29
|
* 5. Use the session_id to submit feedback and improve routing
|
|
31
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-router.js","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"model-router.js","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,WAAW,CACT,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF;AAhED,kCAgEC"}
|
|
@@ -6,7 +6,7 @@ export class ModelRouter extends APIResource {
|
|
|
6
6
|
* algorithm.
|
|
7
7
|
*
|
|
8
8
|
* This endpoint analyzes your messages and returns the best-suited model from your
|
|
9
|
-
* specified
|
|
9
|
+
* specified models. The router considers factors like query complexity, model
|
|
10
10
|
* capabilities, cost, and latency based on your preferences.
|
|
11
11
|
*
|
|
12
12
|
* **Key Features:**
|
|
@@ -15,14 +15,13 @@ export class ModelRouter extends APIResource {
|
|
|
15
15
|
* - Support for custom routers trained on your evaluation data
|
|
16
16
|
* - Optional cost/latency optimization
|
|
17
17
|
* - Function calling support for compatible models
|
|
18
|
-
* - Privacy-preserving content hashing
|
|
19
18
|
*
|
|
20
19
|
* **Usage:**
|
|
21
20
|
*
|
|
22
21
|
* 1. Pass your messages in OpenAI format (array of objects with 'role' and
|
|
23
22
|
* 'content')
|
|
24
23
|
* 2. Specify which LLM providers you want to route between
|
|
25
|
-
* 3. Optionally provide a preference_id
|
|
24
|
+
* 3. Optionally provide a preference_id to use a custom router that you've trained
|
|
26
25
|
* 4. Receive a recommended model and session_id
|
|
27
26
|
* 5. Use the session_id to submit feedback and improve routing
|
|
28
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-router.mjs","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"model-router.mjs","sourceRoot":"","sources":["../src/resources/model-router.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,WAAW,CACT,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -7,14 +7,14 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
7
7
|
* Adapt your prompt from one LLM to work optimally across different target LLMs.
|
|
8
8
|
*
|
|
9
9
|
* This endpoint automatically optimizes your prompt (system prompt + user message
|
|
10
|
-
* template) to
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* template) to improve accuracy on your use case across various models. Each model
|
|
11
|
+
* has unique characteristics, and what works well for GPT-5 might not work as well
|
|
12
|
+
* for Claude or Gemini.
|
|
13
13
|
*
|
|
14
14
|
* **How Prompt Adaptation Works:**
|
|
15
15
|
*
|
|
16
|
-
* 1. You provide your current prompt
|
|
17
|
-
* 2. You specify target models you want to adapt to
|
|
16
|
+
* 1. You provide your current prompt and optionally your current origin model
|
|
17
|
+
* 2. You specify the target models you want to adapt your prompt to
|
|
18
18
|
* 3. You provide evaluation examples (golden records) with expected answers
|
|
19
19
|
* 4. The system runs optimization to find the best prompt for each target model
|
|
20
20
|
* 5. You receive adapted prompts that perform well on your target models
|
|
@@ -22,8 +22,7 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
22
22
|
* **Evaluation Metrics:** Choose either a standard metric or provide custom
|
|
23
23
|
* evaluation:
|
|
24
24
|
*
|
|
25
|
-
* - **Standard metrics**: LLMaaJ:
|
|
26
|
-
* JSON_Match
|
|
25
|
+
* - **Standard metrics**: LLMaaJ:Sem_Sim_1 (semantic similarity), JSON_Match
|
|
27
26
|
* - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
|
|
28
27
|
* prompt, and cutoff
|
|
29
28
|
*
|
|
@@ -40,21 +39,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
40
39
|
* - Time depends on: number of target models, dataset size, model availability
|
|
41
40
|
* - Use the returned adaptation_run_id to check status and retrieve results
|
|
42
41
|
*
|
|
43
|
-
* **Subscription Tiers:**
|
|
44
|
-
*
|
|
45
|
-
* - Free: 1 target model
|
|
46
|
-
* - Starter: 3 target models
|
|
47
|
-
* - Startup: 5 target models
|
|
48
|
-
* - Enterprise: 10 target models
|
|
49
|
-
*
|
|
50
|
-
* **Best Practices:**
|
|
51
|
-
*
|
|
52
|
-
* 1. Use diverse, representative examples from your production workload
|
|
53
|
-
* 2. Include examples for best results (25 minimum)
|
|
54
|
-
* 3. Ensure consistent evaluation across all examples
|
|
55
|
-
* 4. Test both train_goldens and test_goldens split for validation
|
|
56
|
-
* 5. Use the same model versions you'll use in production
|
|
57
|
-
*
|
|
58
42
|
* **Example Workflow:**
|
|
59
43
|
*
|
|
60
44
|
* ```
|
|
@@ -144,15 +128,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
144
128
|
* 3. Apply the optimized prompts when calling the respective target models
|
|
145
129
|
* 4. Compare pre/post optimization scores to see improvement
|
|
146
130
|
*
|
|
147
|
-
* **Evaluation Scores:**
|
|
148
|
-
*
|
|
149
|
-
* - Scores range from 0-10 (higher is better)
|
|
150
|
-
* - Compare origin_model score with target_models pre_optimization_score for
|
|
151
|
-
* baseline
|
|
152
|
-
* - Compare pre_optimization_score with post_optimization_score to see improvement
|
|
153
|
-
* from adaptation
|
|
154
|
-
* - Typical improvements range from 5-30% on evaluation metrics
|
|
155
|
-
*
|
|
156
131
|
* **Status Handling:**
|
|
157
132
|
*
|
|
158
133
|
* - If adaptation is still processing, target model results will have
|
|
@@ -236,7 +211,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
236
211
|
* - Total cost across all models used in the adaptation
|
|
237
212
|
* - Individual usage records with provider, model, tokens, and costs
|
|
238
213
|
* - Timestamps for each LLM request
|
|
239
|
-
* - Task type (e.g., optimization, evaluation)
|
|
240
214
|
*
|
|
241
215
|
* **Access Control:**
|
|
242
216
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.d.mts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.d.mts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+FG;IACH,KAAK,CACH,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uCAAuC,CAAC;IAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UA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AAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -7,14 +7,14 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
7
7
|
* Adapt your prompt from one LLM to work optimally across different target LLMs.
|
|
8
8
|
*
|
|
9
9
|
* This endpoint automatically optimizes your prompt (system prompt + user message
|
|
10
|
-
* template) to
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* template) to improve accuracy on your use case across various models. Each model
|
|
11
|
+
* has unique characteristics, and what works well for GPT-5 might not work as well
|
|
12
|
+
* for Claude or Gemini.
|
|
13
13
|
*
|
|
14
14
|
* **How Prompt Adaptation Works:**
|
|
15
15
|
*
|
|
16
|
-
* 1. You provide your current prompt
|
|
17
|
-
* 2. You specify target models you want to adapt to
|
|
16
|
+
* 1. You provide your current prompt and optionally your current origin model
|
|
17
|
+
* 2. You specify the target models you want to adapt your prompt to
|
|
18
18
|
* 3. You provide evaluation examples (golden records) with expected answers
|
|
19
19
|
* 4. The system runs optimization to find the best prompt for each target model
|
|
20
20
|
* 5. You receive adapted prompts that perform well on your target models
|
|
@@ -22,8 +22,7 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
22
22
|
* **Evaluation Metrics:** Choose either a standard metric or provide custom
|
|
23
23
|
* evaluation:
|
|
24
24
|
*
|
|
25
|
-
* - **Standard metrics**: LLMaaJ:
|
|
26
|
-
* JSON_Match
|
|
25
|
+
* - **Standard metrics**: LLMaaJ:Sem_Sim_1 (semantic similarity), JSON_Match
|
|
27
26
|
* - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
|
|
28
27
|
* prompt, and cutoff
|
|
29
28
|
*
|
|
@@ -40,21 +39,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
40
39
|
* - Time depends on: number of target models, dataset size, model availability
|
|
41
40
|
* - Use the returned adaptation_run_id to check status and retrieve results
|
|
42
41
|
*
|
|
43
|
-
* **Subscription Tiers:**
|
|
44
|
-
*
|
|
45
|
-
* - Free: 1 target model
|
|
46
|
-
* - Starter: 3 target models
|
|
47
|
-
* - Startup: 5 target models
|
|
48
|
-
* - Enterprise: 10 target models
|
|
49
|
-
*
|
|
50
|
-
* **Best Practices:**
|
|
51
|
-
*
|
|
52
|
-
* 1. Use diverse, representative examples from your production workload
|
|
53
|
-
* 2. Include examples for best results (25 minimum)
|
|
54
|
-
* 3. Ensure consistent evaluation across all examples
|
|
55
|
-
* 4. Test both train_goldens and test_goldens split for validation
|
|
56
|
-
* 5. Use the same model versions you'll use in production
|
|
57
|
-
*
|
|
58
42
|
* **Example Workflow:**
|
|
59
43
|
*
|
|
60
44
|
* ```
|
|
@@ -144,15 +128,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
144
128
|
* 3. Apply the optimized prompts when calling the respective target models
|
|
145
129
|
* 4. Compare pre/post optimization scores to see improvement
|
|
146
130
|
*
|
|
147
|
-
* **Evaluation Scores:**
|
|
148
|
-
*
|
|
149
|
-
* - Scores range from 0-10 (higher is better)
|
|
150
|
-
* - Compare origin_model score with target_models pre_optimization_score for
|
|
151
|
-
* baseline
|
|
152
|
-
* - Compare pre_optimization_score with post_optimization_score to see improvement
|
|
153
|
-
* from adaptation
|
|
154
|
-
* - Typical improvements range from 5-30% on evaluation metrics
|
|
155
|
-
*
|
|
156
131
|
* **Status Handling:**
|
|
157
132
|
*
|
|
158
133
|
* - If adaptation is still processing, target model results will have
|
|
@@ -236,7 +211,6 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
236
211
|
* - Total cost across all models used in the adaptation
|
|
237
212
|
* - Individual usage records with provider, model, tokens, and costs
|
|
238
213
|
* - Timestamps for each LLM request
|
|
239
|
-
* - Task type (e.g., optimization, evaluation)
|
|
240
214
|
*
|
|
241
215
|
* **Access Control:**
|
|
242
216
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.d.ts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mapp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AEtB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,aAAa,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IAEtC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,YAAY,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAEtC;;;OAGG;IACH,6BAA6B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9C;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAE1C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -9,14 +9,14 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
9
9
|
* Adapt your prompt from one LLM to work optimally across different target LLMs.
|
|
10
10
|
*
|
|
11
11
|
* This endpoint automatically optimizes your prompt (system prompt + user message
|
|
12
|
-
* template) to
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* template) to improve accuracy on your use case across various models. Each model
|
|
13
|
+
* has unique characteristics, and what works well for GPT-5 might not work as well
|
|
14
|
+
* for Claude or Gemini.
|
|
15
15
|
*
|
|
16
16
|
* **How Prompt Adaptation Works:**
|
|
17
17
|
*
|
|
18
|
-
* 1. You provide your current prompt
|
|
19
|
-
* 2. You specify target models you want to adapt to
|
|
18
|
+
* 1. You provide your current prompt and optionally your current origin model
|
|
19
|
+
* 2. You specify the target models you want to adapt your prompt to
|
|
20
20
|
* 3. You provide evaluation examples (golden records) with expected answers
|
|
21
21
|
* 4. The system runs optimization to find the best prompt for each target model
|
|
22
22
|
* 5. You receive adapted prompts that perform well on your target models
|
|
@@ -24,8 +24,7 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
24
24
|
* **Evaluation Metrics:** Choose either a standard metric or provide custom
|
|
25
25
|
* evaluation:
|
|
26
26
|
*
|
|
27
|
-
* - **Standard metrics**: LLMaaJ:
|
|
28
|
-
* JSON_Match
|
|
27
|
+
* - **Standard metrics**: LLMaaJ:Sem_Sim_1 (semantic similarity), JSON_Match
|
|
29
28
|
* - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
|
|
30
29
|
* prompt, and cutoff
|
|
31
30
|
*
|
|
@@ -42,21 +41,6 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
42
41
|
* - Time depends on: number of target models, dataset size, model availability
|
|
43
42
|
* - Use the returned adaptation_run_id to check status and retrieve results
|
|
44
43
|
*
|
|
45
|
-
* **Subscription Tiers:**
|
|
46
|
-
*
|
|
47
|
-
* - Free: 1 target model
|
|
48
|
-
* - Starter: 3 target models
|
|
49
|
-
* - Startup: 5 target models
|
|
50
|
-
* - Enterprise: 10 target models
|
|
51
|
-
*
|
|
52
|
-
* **Best Practices:**
|
|
53
|
-
*
|
|
54
|
-
* 1. Use diverse, representative examples from your production workload
|
|
55
|
-
* 2. Include examples for best results (25 minimum)
|
|
56
|
-
* 3. Ensure consistent evaluation across all examples
|
|
57
|
-
* 4. Test both train_goldens and test_goldens split for validation
|
|
58
|
-
* 5. Use the same model versions you'll use in production
|
|
59
|
-
*
|
|
60
44
|
* **Example Workflow:**
|
|
61
45
|
*
|
|
62
46
|
* ```
|
|
@@ -148,15 +132,6 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
148
132
|
* 3. Apply the optimized prompts when calling the respective target models
|
|
149
133
|
* 4. Compare pre/post optimization scores to see improvement
|
|
150
134
|
*
|
|
151
|
-
* **Evaluation Scores:**
|
|
152
|
-
*
|
|
153
|
-
* - Scores range from 0-10 (higher is better)
|
|
154
|
-
* - Compare origin_model score with target_models pre_optimization_score for
|
|
155
|
-
* baseline
|
|
156
|
-
* - Compare pre_optimization_score with post_optimization_score to see improvement
|
|
157
|
-
* from adaptation
|
|
158
|
-
* - Typical improvements range from 5-30% on evaluation metrics
|
|
159
|
-
*
|
|
160
135
|
* **Status Handling:**
|
|
161
136
|
*
|
|
162
137
|
* - If adaptation is still processing, target model results will have
|
|
@@ -244,7 +219,6 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
244
219
|
* - Total cost across all models used in the adaptation
|
|
245
220
|
* - Individual usage records with provider, model, tokens, and costs
|
|
246
221
|
* - Timestamps for each LLM request
|
|
247
|
-
* - Task type (e.g., optimization, evaluation)
|
|
248
222
|
*
|
|
249
223
|
* **Access Control:**
|
|
250
224
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.js","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.js","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+FG;IACH,KAAK,CACH,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,eAAuB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,eAAe,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAnPD,4CAmPC"}
|
|
@@ -6,14 +6,14 @@ export class PromptAdaptation extends APIResource {
|
|
|
6
6
|
* Adapt your prompt from one LLM to work optimally across different target LLMs.
|
|
7
7
|
*
|
|
8
8
|
* This endpoint automatically optimizes your prompt (system prompt + user message
|
|
9
|
-
* template) to
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* template) to improve accuracy on your use case across various models. Each model
|
|
10
|
+
* has unique characteristics, and what works well for GPT-5 might not work as well
|
|
11
|
+
* for Claude or Gemini.
|
|
12
12
|
*
|
|
13
13
|
* **How Prompt Adaptation Works:**
|
|
14
14
|
*
|
|
15
|
-
* 1. You provide your current prompt
|
|
16
|
-
* 2. You specify target models you want to adapt to
|
|
15
|
+
* 1. You provide your current prompt and optionally your current origin model
|
|
16
|
+
* 2. You specify the target models you want to adapt your prompt to
|
|
17
17
|
* 3. You provide evaluation examples (golden records) with expected answers
|
|
18
18
|
* 4. The system runs optimization to find the best prompt for each target model
|
|
19
19
|
* 5. You receive adapted prompts that perform well on your target models
|
|
@@ -21,8 +21,7 @@ export class PromptAdaptation extends APIResource {
|
|
|
21
21
|
* **Evaluation Metrics:** Choose either a standard metric or provide custom
|
|
22
22
|
* evaluation:
|
|
23
23
|
*
|
|
24
|
-
* - **Standard metrics**: LLMaaJ:
|
|
25
|
-
* JSON_Match
|
|
24
|
+
* - **Standard metrics**: LLMaaJ:Sem_Sim_1 (semantic similarity), JSON_Match
|
|
26
25
|
* - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
|
|
27
26
|
* prompt, and cutoff
|
|
28
27
|
*
|
|
@@ -39,21 +38,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
39
38
|
* - Time depends on: number of target models, dataset size, model availability
|
|
40
39
|
* - Use the returned adaptation_run_id to check status and retrieve results
|
|
41
40
|
*
|
|
42
|
-
* **Subscription Tiers:**
|
|
43
|
-
*
|
|
44
|
-
* - Free: 1 target model
|
|
45
|
-
* - Starter: 3 target models
|
|
46
|
-
* - Startup: 5 target models
|
|
47
|
-
* - Enterprise: 10 target models
|
|
48
|
-
*
|
|
49
|
-
* **Best Practices:**
|
|
50
|
-
*
|
|
51
|
-
* 1. Use diverse, representative examples from your production workload
|
|
52
|
-
* 2. Include examples for best results (25 minimum)
|
|
53
|
-
* 3. Ensure consistent evaluation across all examples
|
|
54
|
-
* 4. Test both train_goldens and test_goldens split for validation
|
|
55
|
-
* 5. Use the same model versions you'll use in production
|
|
56
|
-
*
|
|
57
41
|
* **Example Workflow:**
|
|
58
42
|
*
|
|
59
43
|
* ```
|
|
@@ -145,15 +129,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
145
129
|
* 3. Apply the optimized prompts when calling the respective target models
|
|
146
130
|
* 4. Compare pre/post optimization scores to see improvement
|
|
147
131
|
*
|
|
148
|
-
* **Evaluation Scores:**
|
|
149
|
-
*
|
|
150
|
-
* - Scores range from 0-10 (higher is better)
|
|
151
|
-
* - Compare origin_model score with target_models pre_optimization_score for
|
|
152
|
-
* baseline
|
|
153
|
-
* - Compare pre_optimization_score with post_optimization_score to see improvement
|
|
154
|
-
* from adaptation
|
|
155
|
-
* - Typical improvements range from 5-30% on evaluation metrics
|
|
156
|
-
*
|
|
157
132
|
* **Status Handling:**
|
|
158
133
|
*
|
|
159
134
|
* - If adaptation is still processing, target model results will have
|
|
@@ -241,7 +216,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
241
216
|
* - Total cost across all models used in the adaptation
|
|
242
217
|
* - Individual usage records with provider, model, tokens, and costs
|
|
243
218
|
* - Timestamps for each LLM request
|
|
244
|
-
* - Task type (e.g., optimization, evaluation)
|
|
245
219
|
*
|
|
246
220
|
* **Access Control:**
|
|
247
221
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.mjs","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.mjs","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+FG;IACH,KAAK,CACH,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,QAAQ,CAAC,eAAuB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,eAAe,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -11,7 +11,7 @@ export class ModelRouter extends APIResource {
|
|
|
11
11
|
* algorithm.
|
|
12
12
|
*
|
|
13
13
|
* This endpoint analyzes your messages and returns the best-suited model from your
|
|
14
|
-
* specified
|
|
14
|
+
* specified models. The router considers factors like query complexity, model
|
|
15
15
|
* capabilities, cost, and latency based on your preferences.
|
|
16
16
|
*
|
|
17
17
|
* **Key Features:**
|
|
@@ -20,14 +20,13 @@ export class ModelRouter extends APIResource {
|
|
|
20
20
|
* - Support for custom routers trained on your evaluation data
|
|
21
21
|
* - Optional cost/latency optimization
|
|
22
22
|
* - Function calling support for compatible models
|
|
23
|
-
* - Privacy-preserving content hashing
|
|
24
23
|
*
|
|
25
24
|
* **Usage:**
|
|
26
25
|
*
|
|
27
26
|
* 1. Pass your messages in OpenAI format (array of objects with 'role' and
|
|
28
27
|
* 'content')
|
|
29
28
|
* 2. Specify which LLM providers you want to route between
|
|
30
|
-
* 3. Optionally provide a preference_id
|
|
29
|
+
* 3. Optionally provide a preference_id to use a custom router that you've trained
|
|
31
30
|
* 4. Receive a recommended model and session_id
|
|
32
31
|
* 5. Use the session_id to submit feedback and improve routing
|
|
33
32
|
*
|
|
@@ -11,14 +11,14 @@ export class PromptAdaptation extends APIResource {
|
|
|
11
11
|
* Adapt your prompt from one LLM to work optimally across different target LLMs.
|
|
12
12
|
*
|
|
13
13
|
* This endpoint automatically optimizes your prompt (system prompt + user message
|
|
14
|
-
* template) to
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* template) to improve accuracy on your use case across various models. Each model
|
|
15
|
+
* has unique characteristics, and what works well for GPT-5 might not work as well
|
|
16
|
+
* for Claude or Gemini.
|
|
17
17
|
*
|
|
18
18
|
* **How Prompt Adaptation Works:**
|
|
19
19
|
*
|
|
20
|
-
* 1. You provide your current prompt
|
|
21
|
-
* 2. You specify target models you want to adapt to
|
|
20
|
+
* 1. You provide your current prompt and optionally your current origin model
|
|
21
|
+
* 2. You specify the target models you want to adapt your prompt to
|
|
22
22
|
* 3. You provide evaluation examples (golden records) with expected answers
|
|
23
23
|
* 4. The system runs optimization to find the best prompt for each target model
|
|
24
24
|
* 5. You receive adapted prompts that perform well on your target models
|
|
@@ -26,8 +26,7 @@ export class PromptAdaptation extends APIResource {
|
|
|
26
26
|
* **Evaluation Metrics:** Choose either a standard metric or provide custom
|
|
27
27
|
* evaluation:
|
|
28
28
|
*
|
|
29
|
-
* - **Standard metrics**: LLMaaJ:
|
|
30
|
-
* JSON_Match
|
|
29
|
+
* - **Standard metrics**: LLMaaJ:Sem_Sim_1 (semantic similarity), JSON_Match
|
|
31
30
|
* - **Custom evaluation**: Provide evaluation_config with your own LLM judge,
|
|
32
31
|
* prompt, and cutoff
|
|
33
32
|
*
|
|
@@ -44,21 +43,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
44
43
|
* - Time depends on: number of target models, dataset size, model availability
|
|
45
44
|
* - Use the returned adaptation_run_id to check status and retrieve results
|
|
46
45
|
*
|
|
47
|
-
* **Subscription Tiers:**
|
|
48
|
-
*
|
|
49
|
-
* - Free: 1 target model
|
|
50
|
-
* - Starter: 3 target models
|
|
51
|
-
* - Startup: 5 target models
|
|
52
|
-
* - Enterprise: 10 target models
|
|
53
|
-
*
|
|
54
|
-
* **Best Practices:**
|
|
55
|
-
*
|
|
56
|
-
* 1. Use diverse, representative examples from your production workload
|
|
57
|
-
* 2. Include examples for best results (25 minimum)
|
|
58
|
-
* 3. Ensure consistent evaluation across all examples
|
|
59
|
-
* 4. Test both train_goldens and test_goldens split for validation
|
|
60
|
-
* 5. Use the same model versions you'll use in production
|
|
61
|
-
*
|
|
62
46
|
* **Example Workflow:**
|
|
63
47
|
*
|
|
64
48
|
* ```
|
|
@@ -154,15 +138,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
154
138
|
* 3. Apply the optimized prompts when calling the respective target models
|
|
155
139
|
* 4. Compare pre/post optimization scores to see improvement
|
|
156
140
|
*
|
|
157
|
-
* **Evaluation Scores:**
|
|
158
|
-
*
|
|
159
|
-
* - Scores range from 0-10 (higher is better)
|
|
160
|
-
* - Compare origin_model score with target_models pre_optimization_score for
|
|
161
|
-
* baseline
|
|
162
|
-
* - Compare pre_optimization_score with post_optimization_score to see improvement
|
|
163
|
-
* from adaptation
|
|
164
|
-
* - Typical improvements range from 5-30% on evaluation metrics
|
|
165
|
-
*
|
|
166
141
|
* **Status Handling:**
|
|
167
142
|
*
|
|
168
143
|
* - If adaptation is still processing, target model results will have
|
|
@@ -258,7 +233,6 @@ export class PromptAdaptation extends APIResource {
|
|
|
258
233
|
* - Total cost across all models used in the adaptation
|
|
259
234
|
* - Individual usage records with provider, model, tokens, and costs
|
|
260
235
|
* - Timestamps for each LLM request
|
|
261
|
-
* - Task type (e.g., optimization, evaluation)
|
|
262
236
|
*
|
|
263
237
|
* **Access Control:**
|
|
264
238
|
*
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.0.0-
|
|
1
|
+
export const VERSION = '2.0.0-rc15'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-
|
|
1
|
+
export declare const VERSION = "2.0.0-rc15";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-
|
|
1
|
+
export declare const VERSION = "2.0.0-rc15";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.0-
|
|
1
|
+
export const VERSION = '2.0.0-rc15'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|