@datarobot/pulumi-datarobot 0.8.8 → 0.8.9
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/llmBlueprint.d.ts +3 -34
- package/llmBlueprint.js +0 -31
- package/llmBlueprint.js.map +1 -1
- package/package.json +1 -1
package/llmBlueprint.d.ts
CHANGED
|
@@ -3,37 +3,6 @@ import * as inputs from "./types/input";
|
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
5
|
* LLMBlueprint
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
12
|
-
*
|
|
13
|
-
* const exampleUseCase = new datarobot.UseCase("exampleUseCase", {});
|
|
14
|
-
* const examplePlayground = new datarobot.Playground("examplePlayground", {
|
|
15
|
-
* description: "Description for the example playground",
|
|
16
|
-
* useCaseId: exampleUseCase.id,
|
|
17
|
-
* });
|
|
18
|
-
* const exampleLlmBlueprint = new datarobot.LlmBlueprint("exampleLlmBlueprint", {
|
|
19
|
-
* description: "Description for the example LLM blueprint",
|
|
20
|
-
* playgroundId: examplePlayground.id,
|
|
21
|
-
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
22
|
-
* promptType: "ONE_TIME_PROMPT",
|
|
23
|
-
* });
|
|
24
|
-
* // Optional
|
|
25
|
-
* // llm_settings {
|
|
26
|
-
* // max_completion_length = 1000
|
|
27
|
-
* // temperature = 0.5
|
|
28
|
-
* // top_p = 0.9
|
|
29
|
-
* // system_prompt = "My Prompt:"
|
|
30
|
-
* // }
|
|
31
|
-
* // vector_database_settings = {
|
|
32
|
-
* // max_documents_retrieved_per_prompt = 5
|
|
33
|
-
* // max_tokens = 1000
|
|
34
|
-
* // }
|
|
35
|
-
* export const exampleId = exampleLlmBlueprint.id;
|
|
36
|
-
* ```
|
|
37
6
|
*/
|
|
38
7
|
export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
39
8
|
/**
|
|
@@ -60,7 +29,7 @@ export declare class LlmBlueprint extends pulumi.CustomResource {
|
|
|
60
29
|
*/
|
|
61
30
|
readonly description: pulumi.Output<string | undefined>;
|
|
62
31
|
/**
|
|
63
|
-
* The id of the LLM for the LLM Blueprint.
|
|
32
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
64
33
|
*/
|
|
65
34
|
readonly llmId: pulumi.Output<string | undefined>;
|
|
66
35
|
/**
|
|
@@ -109,7 +78,7 @@ export interface LlmBlueprintState {
|
|
|
109
78
|
*/
|
|
110
79
|
description?: pulumi.Input<string>;
|
|
111
80
|
/**
|
|
112
|
-
* The id of the LLM for the LLM Blueprint.
|
|
81
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
113
82
|
*/
|
|
114
83
|
llmId?: pulumi.Input<string>;
|
|
115
84
|
/**
|
|
@@ -150,7 +119,7 @@ export interface LlmBlueprintArgs {
|
|
|
150
119
|
*/
|
|
151
120
|
description?: pulumi.Input<string>;
|
|
152
121
|
/**
|
|
153
|
-
* The id of the LLM for the LLM Blueprint.
|
|
122
|
+
* The id of the LLM for the LLM Blueprint. If custom*model*llm_settings is set, this value must be 'custom-model'.
|
|
154
123
|
*/
|
|
155
124
|
llmId?: pulumi.Input<string>;
|
|
156
125
|
/**
|
package/llmBlueprint.js
CHANGED
|
@@ -7,37 +7,6 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* LLMBlueprint
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as datarobot from "@datarobot/pulumi-datarobot";
|
|
16
|
-
*
|
|
17
|
-
* const exampleUseCase = new datarobot.UseCase("exampleUseCase", {});
|
|
18
|
-
* const examplePlayground = new datarobot.Playground("examplePlayground", {
|
|
19
|
-
* description: "Description for the example playground",
|
|
20
|
-
* useCaseId: exampleUseCase.id,
|
|
21
|
-
* });
|
|
22
|
-
* const exampleLlmBlueprint = new datarobot.LlmBlueprint("exampleLlmBlueprint", {
|
|
23
|
-
* description: "Description for the example LLM blueprint",
|
|
24
|
-
* playgroundId: examplePlayground.id,
|
|
25
|
-
* llmId: "azure-openai-gpt-3.5-turbo",
|
|
26
|
-
* promptType: "ONE_TIME_PROMPT",
|
|
27
|
-
* });
|
|
28
|
-
* // Optional
|
|
29
|
-
* // llm_settings {
|
|
30
|
-
* // max_completion_length = 1000
|
|
31
|
-
* // temperature = 0.5
|
|
32
|
-
* // top_p = 0.9
|
|
33
|
-
* // system_prompt = "My Prompt:"
|
|
34
|
-
* // }
|
|
35
|
-
* // vector_database_settings = {
|
|
36
|
-
* // max_documents_retrieved_per_prompt = 5
|
|
37
|
-
* // max_tokens = 1000
|
|
38
|
-
* // }
|
|
39
|
-
* export const exampleId = exampleLlmBlueprint.id;
|
|
40
|
-
* ```
|
|
41
10
|
*/
|
|
42
11
|
class LlmBlueprint extends pulumi.CustomResource {
|
|
43
12
|
/**
|
package/llmBlueprint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"llmBlueprint.js","sourceRoot":"","sources":["../llmBlueprint.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,M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