@wix/auto_sdk_ai-gateway_generators 1.0.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/build/cjs/index.d.ts +11262 -0
- package/build/cjs/index.js +5001 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +4785 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +10891 -0
- package/build/cjs/meta.js +4385 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +11262 -0
- package/build/es/index.mjs +4864 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +4648 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +10891 -0
- package/build/es/meta.mjs +4245 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +297 -0
- package/build/internal/cjs/index.js +5001 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +11518 -0
- package/build/internal/cjs/index.typings.js +4785 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +10892 -0
- package/build/internal/cjs/meta.js +4385 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +297 -0
- package/build/internal/es/index.mjs +4864 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +11518 -0
- package/build/internal/es/index.typings.mjs +4648 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +10892 -0
- package/build/internal/es/meta.mjs +4245 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,4648 @@
|
|
|
1
|
+
// src/ds-wix-ai-gateway-v1-prompt-generators.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import {
|
|
4
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
+
|
|
8
|
+
// src/ds-wix-ai-gateway-v1-prompt-generators.http.ts
|
|
9
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
12
|
+
import { transformSDKBytesToRESTBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
13
|
+
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
14
|
+
import { transformRESTDurationToSDKDuration } from "@wix/sdk-runtime/transformations/duration";
|
|
15
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
function resolveWixDsWixAiGatewayV1WixAiGatewayUrl(opts) {
|
|
18
|
+
const domainToMappings = {
|
|
19
|
+
"bo._base_domain_": [
|
|
20
|
+
{
|
|
21
|
+
srcPath: "/wix-ai-gateway",
|
|
22
|
+
destPath: ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
srcPath: "/_api/wix-ai-gateway",
|
|
26
|
+
destPath: ""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
srcPath: "/wix-ai-gateway-envoy",
|
|
30
|
+
destPath: ""
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"wixbo.ai": [
|
|
34
|
+
{
|
|
35
|
+
srcPath: "/wix-ai-gateway",
|
|
36
|
+
destPath: ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
srcPath: "/_api/wix-ai-gateway",
|
|
40
|
+
destPath: ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
srcPath: "/wix-ai-gateway-envoy",
|
|
44
|
+
destPath: ""
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"wix-bo.com": [
|
|
48
|
+
{
|
|
49
|
+
srcPath: "/wix-ai-gateway",
|
|
50
|
+
destPath: ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
srcPath: "/_api/wix-ai-gateway",
|
|
54
|
+
destPath: ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
srcPath: "/wix-ai-gateway-envoy",
|
|
58
|
+
destPath: ""
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"api._api_base_domain_": [
|
|
62
|
+
{
|
|
63
|
+
srcPath: "/wix-ai-gateway",
|
|
64
|
+
destPath: ""
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"manage._base_domain_": [
|
|
68
|
+
{
|
|
69
|
+
srcPath: "/_api/wix-ai-gateway",
|
|
70
|
+
destPath: ""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
srcPath: "/wix-ai-gateway-envoy",
|
|
74
|
+
destPath: ""
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
79
|
+
}
|
|
80
|
+
var PACKAGE_NAME = "@wix/auto_sdk_ai-gateway_generators";
|
|
81
|
+
function generateTextByPrompt(payload) {
|
|
82
|
+
function __generateTextByPrompt({ host }) {
|
|
83
|
+
const metadata = {
|
|
84
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
85
|
+
method: "POST",
|
|
86
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByPrompt",
|
|
87
|
+
packageName: PACKAGE_NAME,
|
|
88
|
+
migrationOptions: {
|
|
89
|
+
optInTransformResponse: true
|
|
90
|
+
},
|
|
91
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
92
|
+
protoPath: "/v1/generate-by-prompt/{promptId}",
|
|
93
|
+
data: payload,
|
|
94
|
+
host
|
|
95
|
+
}),
|
|
96
|
+
data: payload,
|
|
97
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
98
|
+
{
|
|
99
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
100
|
+
paths: [
|
|
101
|
+
{
|
|
102
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
103
|
+
isRepeated: true
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
107
|
+
isRepeated: true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
114
|
+
},
|
|
115
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
116
|
+
{
|
|
117
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
118
|
+
},
|
|
119
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
120
|
+
{
|
|
121
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
140
|
+
},
|
|
141
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
142
|
+
{
|
|
143
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
153
|
+
},
|
|
154
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
155
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
156
|
+
{
|
|
157
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
158
|
+
},
|
|
159
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
160
|
+
{
|
|
161
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
162
|
+
},
|
|
163
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
164
|
+
{
|
|
165
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
196
|
+
},
|
|
197
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
198
|
+
{
|
|
199
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
221
|
+
},
|
|
222
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
223
|
+
{
|
|
224
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
228
|
+
},
|
|
229
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
230
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
231
|
+
{
|
|
232
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
233
|
+
},
|
|
234
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
235
|
+
{
|
|
236
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
237
|
+
isRepeated: true
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
241
|
+
},
|
|
242
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
243
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
244
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
245
|
+
{
|
|
246
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
250
|
+
},
|
|
251
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
252
|
+
{
|
|
253
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
274
|
+
paths: [
|
|
275
|
+
{
|
|
276
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
])
|
|
281
|
+
};
|
|
282
|
+
return metadata;
|
|
283
|
+
}
|
|
284
|
+
return __generateTextByPrompt;
|
|
285
|
+
}
|
|
286
|
+
function generateTextByPromptStreamed(payload) {
|
|
287
|
+
function __generateTextByPromptStreamed({ host }) {
|
|
288
|
+
const metadata = {
|
|
289
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
290
|
+
method: "POST",
|
|
291
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByPromptStreamed",
|
|
292
|
+
packageName: PACKAGE_NAME,
|
|
293
|
+
migrationOptions: {
|
|
294
|
+
optInTransformResponse: true
|
|
295
|
+
},
|
|
296
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
297
|
+
protoPath: "/v1/generate-by-prompt-streamed/{promptId}",
|
|
298
|
+
data: payload,
|
|
299
|
+
host
|
|
300
|
+
}),
|
|
301
|
+
data: payload,
|
|
302
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
303
|
+
{
|
|
304
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
305
|
+
paths: [
|
|
306
|
+
{
|
|
307
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.probabilityScore"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
314
|
+
isRepeated: true
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
323
|
+
paths: [
|
|
324
|
+
{
|
|
325
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
])
|
|
330
|
+
};
|
|
331
|
+
return metadata;
|
|
332
|
+
}
|
|
333
|
+
return __generateTextByPromptStreamed;
|
|
334
|
+
}
|
|
335
|
+
function generateTextByPromptObject(payload) {
|
|
336
|
+
function __generateTextByPromptObject({ host }) {
|
|
337
|
+
const serializedData = transformPaths(payload, [
|
|
338
|
+
{
|
|
339
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
340
|
+
paths: [
|
|
341
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
342
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
343
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
344
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
345
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
346
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
347
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
348
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
349
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
350
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
351
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
352
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
353
|
+
{
|
|
354
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
358
|
+
},
|
|
359
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
360
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
361
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
362
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
363
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
364
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
365
|
+
{ path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight" },
|
|
366
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
367
|
+
{
|
|
368
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
369
|
+
},
|
|
370
|
+
{ path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg" },
|
|
371
|
+
{
|
|
372
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
388
|
+
},
|
|
389
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
390
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
391
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg" },
|
|
392
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight" },
|
|
393
|
+
{
|
|
394
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
395
|
+
},
|
|
396
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
397
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
398
|
+
{ path: "prompt.googleCreateChatCompletionRequest.presencePenalty" },
|
|
399
|
+
{ path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty" },
|
|
400
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
401
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
402
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
403
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
404
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
405
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
406
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
407
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
408
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
409
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
410
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
411
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
412
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
413
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
414
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
415
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
416
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
417
|
+
{ path: "prompt.perplexityChatCompletionRequest.presencePenalty" },
|
|
418
|
+
{ path: "prompt.perplexityChatCompletionRequest.frequencyPenalty" },
|
|
419
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
]);
|
|
423
|
+
const metadata = {
|
|
424
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
425
|
+
method: "POST",
|
|
426
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByPromptObject",
|
|
427
|
+
packageName: PACKAGE_NAME,
|
|
428
|
+
migrationOptions: {
|
|
429
|
+
optInTransformResponse: true
|
|
430
|
+
},
|
|
431
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
432
|
+
protoPath: "/v1/generate-by-prompt-object",
|
|
433
|
+
data: serializedData,
|
|
434
|
+
host
|
|
435
|
+
}),
|
|
436
|
+
data: serializedData,
|
|
437
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
438
|
+
{
|
|
439
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
440
|
+
paths: [
|
|
441
|
+
{
|
|
442
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
443
|
+
isRepeated: true
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
447
|
+
isRepeated: true
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
454
|
+
},
|
|
455
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
456
|
+
{
|
|
457
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
458
|
+
},
|
|
459
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
460
|
+
{
|
|
461
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
480
|
+
},
|
|
481
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
482
|
+
{
|
|
483
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
493
|
+
},
|
|
494
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
495
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
496
|
+
{
|
|
497
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
498
|
+
},
|
|
499
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
500
|
+
{
|
|
501
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
502
|
+
},
|
|
503
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
504
|
+
{
|
|
505
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
536
|
+
},
|
|
537
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
538
|
+
{
|
|
539
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
561
|
+
},
|
|
562
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
563
|
+
{
|
|
564
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
568
|
+
},
|
|
569
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
570
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
571
|
+
{
|
|
572
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
573
|
+
},
|
|
574
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
575
|
+
{
|
|
576
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
577
|
+
isRepeated: true
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
581
|
+
},
|
|
582
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
583
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
584
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
585
|
+
{
|
|
586
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
590
|
+
},
|
|
591
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
592
|
+
{
|
|
593
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
614
|
+
paths: [
|
|
615
|
+
{
|
|
616
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
617
|
+
}
|
|
618
|
+
]
|
|
619
|
+
}
|
|
620
|
+
])
|
|
621
|
+
};
|
|
622
|
+
return metadata;
|
|
623
|
+
}
|
|
624
|
+
return __generateTextByPromptObject;
|
|
625
|
+
}
|
|
626
|
+
function generateTextByPromptObjectStreamed(payload) {
|
|
627
|
+
function __generateTextByPromptObjectStreamed({ host }) {
|
|
628
|
+
const serializedData = transformPaths(payload, [
|
|
629
|
+
{
|
|
630
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
631
|
+
paths: [
|
|
632
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
633
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
634
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
635
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
636
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
637
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
638
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
639
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
640
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
641
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
642
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
643
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
644
|
+
{
|
|
645
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
649
|
+
},
|
|
650
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
651
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
652
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
653
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
654
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
655
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
656
|
+
{ path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight" },
|
|
657
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
658
|
+
{
|
|
659
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
660
|
+
},
|
|
661
|
+
{ path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg" },
|
|
662
|
+
{
|
|
663
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
679
|
+
},
|
|
680
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
681
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
682
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg" },
|
|
683
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight" },
|
|
684
|
+
{
|
|
685
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
686
|
+
},
|
|
687
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
688
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
689
|
+
{ path: "prompt.googleCreateChatCompletionRequest.presencePenalty" },
|
|
690
|
+
{ path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty" },
|
|
691
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
692
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
693
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
694
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
695
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
696
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
697
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
698
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
699
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
700
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
701
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
702
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
703
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
704
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
705
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
706
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
707
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
708
|
+
{ path: "prompt.perplexityChatCompletionRequest.presencePenalty" },
|
|
709
|
+
{ path: "prompt.perplexityChatCompletionRequest.frequencyPenalty" },
|
|
710
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
711
|
+
]
|
|
712
|
+
}
|
|
713
|
+
]);
|
|
714
|
+
const metadata = {
|
|
715
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
716
|
+
method: "POST",
|
|
717
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByPromptObjectStreamed",
|
|
718
|
+
packageName: PACKAGE_NAME,
|
|
719
|
+
migrationOptions: {
|
|
720
|
+
optInTransformResponse: true
|
|
721
|
+
},
|
|
722
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
723
|
+
protoPath: "/v1/generate-by-prompt-object-streamed",
|
|
724
|
+
data: serializedData,
|
|
725
|
+
host
|
|
726
|
+
}),
|
|
727
|
+
data: serializedData,
|
|
728
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
729
|
+
{
|
|
730
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
731
|
+
paths: [
|
|
732
|
+
{
|
|
733
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.probabilityScore"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
740
|
+
isRepeated: true
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
749
|
+
paths: [
|
|
750
|
+
{
|
|
751
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
}
|
|
755
|
+
])
|
|
756
|
+
};
|
|
757
|
+
return metadata;
|
|
758
|
+
}
|
|
759
|
+
return __generateTextByPromptObjectStreamed;
|
|
760
|
+
}
|
|
761
|
+
function generateEmbedding(payload) {
|
|
762
|
+
function __generateEmbedding({ host }) {
|
|
763
|
+
const metadata = {
|
|
764
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
765
|
+
method: "POST",
|
|
766
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateEmbedding",
|
|
767
|
+
packageName: PACKAGE_NAME,
|
|
768
|
+
migrationOptions: {
|
|
769
|
+
optInTransformResponse: true
|
|
770
|
+
},
|
|
771
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
772
|
+
protoPath: "/v1/generate-embedding",
|
|
773
|
+
data: payload,
|
|
774
|
+
host
|
|
775
|
+
}),
|
|
776
|
+
data: payload,
|
|
777
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
778
|
+
{
|
|
779
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
780
|
+
paths: [
|
|
781
|
+
{
|
|
782
|
+
path: "openAiEmbeddingsResponse.data.floatEmbedding.embedding",
|
|
783
|
+
isRepeated: true
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
path: "azureEmbeddingsResponse.data.floatEmbedding.embedding",
|
|
787
|
+
isRepeated: true
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
path: "googleEmbeddingsResponse.predictions.embeddings.embedding",
|
|
791
|
+
isRepeated: true
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
}
|
|
795
|
+
])
|
|
796
|
+
};
|
|
797
|
+
return metadata;
|
|
798
|
+
}
|
|
799
|
+
return __generateEmbedding;
|
|
800
|
+
}
|
|
801
|
+
function generateTextByProject(payload) {
|
|
802
|
+
function __generateTextByProject({ host }) {
|
|
803
|
+
const metadata = {
|
|
804
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
805
|
+
method: "POST",
|
|
806
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByProject",
|
|
807
|
+
packageName: PACKAGE_NAME,
|
|
808
|
+
migrationOptions: {
|
|
809
|
+
optInTransformResponse: true
|
|
810
|
+
},
|
|
811
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
812
|
+
protoPath: "/v1/generate-by-project/{projectId}",
|
|
813
|
+
data: payload,
|
|
814
|
+
host
|
|
815
|
+
}),
|
|
816
|
+
data: payload,
|
|
817
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
818
|
+
{
|
|
819
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
820
|
+
paths: [
|
|
821
|
+
{
|
|
822
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
823
|
+
isRepeated: true
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
827
|
+
isRepeated: true
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
834
|
+
},
|
|
835
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
836
|
+
{
|
|
837
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
838
|
+
},
|
|
839
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
840
|
+
{
|
|
841
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
860
|
+
},
|
|
861
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
862
|
+
{
|
|
863
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
873
|
+
},
|
|
874
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
875
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
876
|
+
{
|
|
877
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
878
|
+
},
|
|
879
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
880
|
+
{
|
|
881
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
882
|
+
},
|
|
883
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
884
|
+
{
|
|
885
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
916
|
+
},
|
|
917
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
918
|
+
{
|
|
919
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
941
|
+
},
|
|
942
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
943
|
+
{
|
|
944
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
948
|
+
},
|
|
949
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
950
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
951
|
+
{
|
|
952
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
953
|
+
},
|
|
954
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
955
|
+
{
|
|
956
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
957
|
+
isRepeated: true
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
961
|
+
},
|
|
962
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
963
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
964
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
965
|
+
{
|
|
966
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
970
|
+
},
|
|
971
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
972
|
+
{
|
|
973
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
989
|
+
}
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
994
|
+
paths: [
|
|
995
|
+
{
|
|
996
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
997
|
+
}
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
])
|
|
1001
|
+
};
|
|
1002
|
+
return metadata;
|
|
1003
|
+
}
|
|
1004
|
+
return __generateTextByProject;
|
|
1005
|
+
}
|
|
1006
|
+
function generateTextByProjectStreamed(payload) {
|
|
1007
|
+
function __generateTextByProjectStreamed({ host }) {
|
|
1008
|
+
const metadata = {
|
|
1009
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1010
|
+
method: "POST",
|
|
1011
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTextByProjectStreamed",
|
|
1012
|
+
packageName: PACKAGE_NAME,
|
|
1013
|
+
migrationOptions: {
|
|
1014
|
+
optInTransformResponse: true
|
|
1015
|
+
},
|
|
1016
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1017
|
+
protoPath: "/v1/generate-by-project-streamed/{projectId}",
|
|
1018
|
+
data: payload,
|
|
1019
|
+
host
|
|
1020
|
+
}),
|
|
1021
|
+
data: payload,
|
|
1022
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1023
|
+
{
|
|
1024
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1025
|
+
paths: [
|
|
1026
|
+
{
|
|
1027
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.probabilityScore"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
1034
|
+
isRepeated: true
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
1043
|
+
paths: [
|
|
1044
|
+
{
|
|
1045
|
+
path: "googleGeminiStreamChunk.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
1046
|
+
}
|
|
1047
|
+
]
|
|
1048
|
+
}
|
|
1049
|
+
])
|
|
1050
|
+
};
|
|
1051
|
+
return metadata;
|
|
1052
|
+
}
|
|
1053
|
+
return __generateTextByProjectStreamed;
|
|
1054
|
+
}
|
|
1055
|
+
function generateModeration(payload) {
|
|
1056
|
+
function __generateModeration({ host }) {
|
|
1057
|
+
const metadata = {
|
|
1058
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1059
|
+
method: "POST",
|
|
1060
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateModeration",
|
|
1061
|
+
packageName: PACKAGE_NAME,
|
|
1062
|
+
migrationOptions: {
|
|
1063
|
+
optInTransformResponse: true
|
|
1064
|
+
},
|
|
1065
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1066
|
+
protoPath: "/v1/generate-moderation",
|
|
1067
|
+
data: payload,
|
|
1068
|
+
host
|
|
1069
|
+
}),
|
|
1070
|
+
data: payload
|
|
1071
|
+
};
|
|
1072
|
+
return metadata;
|
|
1073
|
+
}
|
|
1074
|
+
return __generateModeration;
|
|
1075
|
+
}
|
|
1076
|
+
function generateImageByProject(payload) {
|
|
1077
|
+
function __generateImageByProject({ host }) {
|
|
1078
|
+
const metadata = {
|
|
1079
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1080
|
+
method: "POST",
|
|
1081
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateImageByProject",
|
|
1082
|
+
packageName: PACKAGE_NAME,
|
|
1083
|
+
migrationOptions: {
|
|
1084
|
+
optInTransformResponse: true
|
|
1085
|
+
},
|
|
1086
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1087
|
+
protoPath: "/v1/generate-image-by-project/{projectId}",
|
|
1088
|
+
data: payload,
|
|
1089
|
+
host
|
|
1090
|
+
}),
|
|
1091
|
+
data: payload,
|
|
1092
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1093
|
+
{
|
|
1094
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1095
|
+
paths: [
|
|
1096
|
+
{
|
|
1097
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1098
|
+
isRepeated: true
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
1102
|
+
},
|
|
1103
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
1104
|
+
{
|
|
1105
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
1124
|
+
},
|
|
1125
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
1126
|
+
{
|
|
1127
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1137
|
+
},
|
|
1138
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
1139
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
1140
|
+
{
|
|
1141
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
1142
|
+
},
|
|
1143
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
1144
|
+
{
|
|
1145
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
1146
|
+
},
|
|
1147
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
1148
|
+
{
|
|
1149
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
1180
|
+
},
|
|
1181
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
1182
|
+
{
|
|
1183
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
1205
|
+
},
|
|
1206
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
1207
|
+
{
|
|
1208
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
1212
|
+
},
|
|
1213
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
1214
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
1215
|
+
{
|
|
1216
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
1217
|
+
},
|
|
1218
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
1219
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
1220
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
1221
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
1222
|
+
{
|
|
1223
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
1227
|
+
},
|
|
1228
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
1229
|
+
{
|
|
1230
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
1246
|
+
}
|
|
1247
|
+
]
|
|
1248
|
+
}
|
|
1249
|
+
])
|
|
1250
|
+
};
|
|
1251
|
+
return metadata;
|
|
1252
|
+
}
|
|
1253
|
+
return __generateImageByProject;
|
|
1254
|
+
}
|
|
1255
|
+
function generateImageByPrompt(payload) {
|
|
1256
|
+
function __generateImageByPrompt({ host }) {
|
|
1257
|
+
const metadata = {
|
|
1258
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1259
|
+
method: "POST",
|
|
1260
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateImageByPrompt",
|
|
1261
|
+
packageName: PACKAGE_NAME,
|
|
1262
|
+
migrationOptions: {
|
|
1263
|
+
optInTransformResponse: true
|
|
1264
|
+
},
|
|
1265
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1266
|
+
protoPath: "/v1/generate-image-by-prompt/{promptId}",
|
|
1267
|
+
data: payload,
|
|
1268
|
+
host
|
|
1269
|
+
}),
|
|
1270
|
+
data: payload,
|
|
1271
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1272
|
+
{
|
|
1273
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1274
|
+
paths: [
|
|
1275
|
+
{
|
|
1276
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1277
|
+
isRepeated: true
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
1281
|
+
},
|
|
1282
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
1283
|
+
{
|
|
1284
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
1303
|
+
},
|
|
1304
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
1305
|
+
{
|
|
1306
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1316
|
+
},
|
|
1317
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
1318
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
1319
|
+
{
|
|
1320
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
1321
|
+
},
|
|
1322
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
1323
|
+
{
|
|
1324
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
1325
|
+
},
|
|
1326
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
1327
|
+
{
|
|
1328
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
1359
|
+
},
|
|
1360
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
1361
|
+
{
|
|
1362
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
1384
|
+
},
|
|
1385
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
1386
|
+
{
|
|
1387
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
1391
|
+
},
|
|
1392
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
1393
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
1394
|
+
{
|
|
1395
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
1396
|
+
},
|
|
1397
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
1398
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
1399
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
1400
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
1401
|
+
{
|
|
1402
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
1406
|
+
},
|
|
1407
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
1408
|
+
{
|
|
1409
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
1425
|
+
}
|
|
1426
|
+
]
|
|
1427
|
+
}
|
|
1428
|
+
])
|
|
1429
|
+
};
|
|
1430
|
+
return metadata;
|
|
1431
|
+
}
|
|
1432
|
+
return __generateImageByPrompt;
|
|
1433
|
+
}
|
|
1434
|
+
function generateImageByPromptObject(payload) {
|
|
1435
|
+
function __generateImageByPromptObject({ host }) {
|
|
1436
|
+
const serializedData = transformPaths(payload, [
|
|
1437
|
+
{
|
|
1438
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1439
|
+
paths: [
|
|
1440
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
1441
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
1442
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
1443
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
1444
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
1445
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
1446
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
1447
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
1448
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
1449
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
1450
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
1451
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
1452
|
+
{
|
|
1453
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1457
|
+
},
|
|
1458
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
1459
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
1460
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
1461
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
1462
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
1463
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
1464
|
+
{ path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight" },
|
|
1465
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
1466
|
+
{
|
|
1467
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
1468
|
+
},
|
|
1469
|
+
{ path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg" },
|
|
1470
|
+
{
|
|
1471
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
1487
|
+
},
|
|
1488
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
1489
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
1490
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg" },
|
|
1491
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight" },
|
|
1492
|
+
{
|
|
1493
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
1494
|
+
},
|
|
1495
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
1496
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
1497
|
+
{ path: "prompt.googleCreateChatCompletionRequest.presencePenalty" },
|
|
1498
|
+
{ path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty" },
|
|
1499
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
1500
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
1501
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
1502
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
1503
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
1504
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
1505
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
1506
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
1507
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
1508
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
1509
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
1510
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
1511
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
1512
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
1513
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
1514
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
1515
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
1516
|
+
{ path: "prompt.perplexityChatCompletionRequest.presencePenalty" },
|
|
1517
|
+
{ path: "prompt.perplexityChatCompletionRequest.frequencyPenalty" },
|
|
1518
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
1519
|
+
]
|
|
1520
|
+
}
|
|
1521
|
+
]);
|
|
1522
|
+
const metadata = {
|
|
1523
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1524
|
+
method: "POST",
|
|
1525
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateImageByPromptObject",
|
|
1526
|
+
packageName: PACKAGE_NAME,
|
|
1527
|
+
migrationOptions: {
|
|
1528
|
+
optInTransformResponse: true
|
|
1529
|
+
},
|
|
1530
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1531
|
+
protoPath: "/v1/generate-image-by-prompt-object",
|
|
1532
|
+
data: serializedData,
|
|
1533
|
+
host
|
|
1534
|
+
}),
|
|
1535
|
+
data: serializedData,
|
|
1536
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1537
|
+
{
|
|
1538
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1539
|
+
paths: [
|
|
1540
|
+
{
|
|
1541
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1542
|
+
isRepeated: true
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
1546
|
+
},
|
|
1547
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
1548
|
+
{
|
|
1549
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
1568
|
+
},
|
|
1569
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
1570
|
+
{
|
|
1571
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1581
|
+
},
|
|
1582
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
1583
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
1584
|
+
{
|
|
1585
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
1586
|
+
},
|
|
1587
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
1588
|
+
{
|
|
1589
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
1590
|
+
},
|
|
1591
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
1592
|
+
{
|
|
1593
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
1624
|
+
},
|
|
1625
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
1626
|
+
{
|
|
1627
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
1649
|
+
},
|
|
1650
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
1651
|
+
{
|
|
1652
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
1656
|
+
},
|
|
1657
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
1658
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
1659
|
+
{
|
|
1660
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
1661
|
+
},
|
|
1662
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
1663
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
1664
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
1665
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
1666
|
+
{
|
|
1667
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
1671
|
+
},
|
|
1672
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
1673
|
+
{
|
|
1674
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
1678
|
+
},
|
|
1679
|
+
{
|
|
1680
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
1690
|
+
}
|
|
1691
|
+
]
|
|
1692
|
+
}
|
|
1693
|
+
])
|
|
1694
|
+
};
|
|
1695
|
+
return metadata;
|
|
1696
|
+
}
|
|
1697
|
+
return __generateImageByPromptObject;
|
|
1698
|
+
}
|
|
1699
|
+
function generateContentByPrompt(payload) {
|
|
1700
|
+
function __generateContentByPrompt({ host }) {
|
|
1701
|
+
const metadata = {
|
|
1702
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1703
|
+
method: "POST",
|
|
1704
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateContentByPrompt",
|
|
1705
|
+
packageName: PACKAGE_NAME,
|
|
1706
|
+
migrationOptions: {
|
|
1707
|
+
optInTransformResponse: true
|
|
1708
|
+
},
|
|
1709
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1710
|
+
protoPath: "/v1/generate-content-by-prompt/{promptId}",
|
|
1711
|
+
data: payload,
|
|
1712
|
+
host
|
|
1713
|
+
}),
|
|
1714
|
+
data: payload,
|
|
1715
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1716
|
+
{
|
|
1717
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1718
|
+
paths: [
|
|
1719
|
+
{
|
|
1720
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
1721
|
+
isRepeated: true
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
1725
|
+
isRepeated: true
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1735
|
+
isRepeated: true
|
|
1736
|
+
},
|
|
1737
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
1738
|
+
{ path: "response.azureOpenAiResponsesResponse.temperature" },
|
|
1739
|
+
{
|
|
1740
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
1741
|
+
},
|
|
1742
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
1743
|
+
{
|
|
1744
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
1763
|
+
},
|
|
1764
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
1765
|
+
{
|
|
1766
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1776
|
+
},
|
|
1777
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
1778
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
1779
|
+
{
|
|
1780
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
1781
|
+
},
|
|
1782
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
1783
|
+
{
|
|
1784
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
1785
|
+
},
|
|
1786
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
1787
|
+
{
|
|
1788
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
1819
|
+
},
|
|
1820
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
1821
|
+
{
|
|
1822
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
1826
|
+
},
|
|
1827
|
+
{
|
|
1828
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
1844
|
+
},
|
|
1845
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
1846
|
+
{
|
|
1847
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
1851
|
+
},
|
|
1852
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
1853
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
1854
|
+
{
|
|
1855
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
1856
|
+
},
|
|
1857
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
1858
|
+
{
|
|
1859
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
1860
|
+
isRepeated: true
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
1864
|
+
},
|
|
1865
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
1866
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
1867
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
1868
|
+
{
|
|
1869
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
1873
|
+
},
|
|
1874
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
1875
|
+
{
|
|
1876
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
1892
|
+
}
|
|
1893
|
+
]
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
1897
|
+
paths: [
|
|
1898
|
+
{
|
|
1899
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
1900
|
+
}
|
|
1901
|
+
]
|
|
1902
|
+
}
|
|
1903
|
+
])
|
|
1904
|
+
};
|
|
1905
|
+
return metadata;
|
|
1906
|
+
}
|
|
1907
|
+
return __generateContentByPrompt;
|
|
1908
|
+
}
|
|
1909
|
+
function generateContentByProject(payload) {
|
|
1910
|
+
function __generateContentByProject({ host }) {
|
|
1911
|
+
const metadata = {
|
|
1912
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
1913
|
+
method: "POST",
|
|
1914
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateContentByProject",
|
|
1915
|
+
packageName: PACKAGE_NAME,
|
|
1916
|
+
migrationOptions: {
|
|
1917
|
+
optInTransformResponse: true
|
|
1918
|
+
},
|
|
1919
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
1920
|
+
protoPath: "/v1/generate-content-by-project/{projectId}",
|
|
1921
|
+
data: payload,
|
|
1922
|
+
host
|
|
1923
|
+
}),
|
|
1924
|
+
data: payload,
|
|
1925
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1926
|
+
{
|
|
1927
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1928
|
+
paths: [
|
|
1929
|
+
{
|
|
1930
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
1931
|
+
isRepeated: true
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
1935
|
+
isRepeated: true
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1945
|
+
isRepeated: true
|
|
1946
|
+
},
|
|
1947
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
1948
|
+
{ path: "response.azureOpenAiResponsesResponse.temperature" },
|
|
1949
|
+
{
|
|
1950
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
1951
|
+
},
|
|
1952
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
1953
|
+
{
|
|
1954
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
1973
|
+
},
|
|
1974
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
1975
|
+
{
|
|
1976
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
1986
|
+
},
|
|
1987
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
1988
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
1989
|
+
{
|
|
1990
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
1991
|
+
},
|
|
1992
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
1993
|
+
{
|
|
1994
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
1995
|
+
},
|
|
1996
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
1997
|
+
{
|
|
1998
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
2029
|
+
},
|
|
2030
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
2031
|
+
{
|
|
2032
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
2054
|
+
},
|
|
2055
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
2056
|
+
{
|
|
2057
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
2061
|
+
},
|
|
2062
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
2063
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
2064
|
+
{
|
|
2065
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
2066
|
+
},
|
|
2067
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
2068
|
+
{
|
|
2069
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
2070
|
+
isRepeated: true
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
2074
|
+
},
|
|
2075
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
2076
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
2077
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
2078
|
+
{
|
|
2079
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
2083
|
+
},
|
|
2084
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
2085
|
+
{
|
|
2086
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
2102
|
+
}
|
|
2103
|
+
]
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
2107
|
+
paths: [
|
|
2108
|
+
{
|
|
2109
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
2110
|
+
}
|
|
2111
|
+
]
|
|
2112
|
+
}
|
|
2113
|
+
])
|
|
2114
|
+
};
|
|
2115
|
+
return metadata;
|
|
2116
|
+
}
|
|
2117
|
+
return __generateContentByProject;
|
|
2118
|
+
}
|
|
2119
|
+
function generateContentByPromptObject(payload) {
|
|
2120
|
+
function __generateContentByPromptObject({ host }) {
|
|
2121
|
+
const serializedData = transformPaths(payload, [
|
|
2122
|
+
{
|
|
2123
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2124
|
+
paths: [
|
|
2125
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
2126
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
2127
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
2128
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
2129
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
2130
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
2131
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
2132
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
2133
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
2134
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
2135
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
2136
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
2137
|
+
{
|
|
2138
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
2142
|
+
},
|
|
2143
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
2144
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
2145
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
2146
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
2147
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
2148
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
2149
|
+
{ path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight" },
|
|
2150
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
2151
|
+
{
|
|
2152
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
2153
|
+
},
|
|
2154
|
+
{ path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg" },
|
|
2155
|
+
{
|
|
2156
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
2172
|
+
},
|
|
2173
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
2174
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
2175
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg" },
|
|
2176
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight" },
|
|
2177
|
+
{
|
|
2178
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
2179
|
+
},
|
|
2180
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
2181
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
2182
|
+
{ path: "prompt.googleCreateChatCompletionRequest.presencePenalty" },
|
|
2183
|
+
{ path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty" },
|
|
2184
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
2185
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
2186
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
2187
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
2188
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
2189
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
2190
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
2191
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
2192
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
2193
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
2194
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
2195
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
2196
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
2197
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
2198
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
2199
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
2200
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
2201
|
+
{ path: "prompt.perplexityChatCompletionRequest.presencePenalty" },
|
|
2202
|
+
{ path: "prompt.perplexityChatCompletionRequest.frequencyPenalty" },
|
|
2203
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
2204
|
+
]
|
|
2205
|
+
}
|
|
2206
|
+
]);
|
|
2207
|
+
const metadata = {
|
|
2208
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2209
|
+
method: "POST",
|
|
2210
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateContentByPromptObject",
|
|
2211
|
+
packageName: PACKAGE_NAME,
|
|
2212
|
+
migrationOptions: {
|
|
2213
|
+
optInTransformResponse: true
|
|
2214
|
+
},
|
|
2215
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2216
|
+
protoPath: "/v1/generate-content-by-prompt-object",
|
|
2217
|
+
data: serializedData,
|
|
2218
|
+
host
|
|
2219
|
+
}),
|
|
2220
|
+
data: serializedData,
|
|
2221
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2222
|
+
{
|
|
2223
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
2224
|
+
paths: [
|
|
2225
|
+
{
|
|
2226
|
+
path: "response.googleTextBisonResponse.predictions.safetyAttributes.scores",
|
|
2227
|
+
isRepeated: true
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
path: "response.googleChatBisonResponse.predictions.safetyAttributes.scores",
|
|
2231
|
+
isRepeated: true
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.probabilityScore"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
2241
|
+
isRepeated: true
|
|
2242
|
+
},
|
|
2243
|
+
{ path: "response.openAiResponsesResponse.temperature" },
|
|
2244
|
+
{ path: "response.azureOpenAiResponsesResponse.temperature" },
|
|
2245
|
+
{
|
|
2246
|
+
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
2247
|
+
},
|
|
2248
|
+
{ path: "materializedPrompt.openAiChatCompletionRequest.topP" },
|
|
2249
|
+
{
|
|
2250
|
+
path: "materializedPrompt.openAiChatCompletionRequest.presencePenalty"
|
|
2251
|
+
},
|
|
2252
|
+
{
|
|
2253
|
+
path: "materializedPrompt.openAiChatCompletionRequest.frequencyPenalty"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.temperature"
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
path: "materializedPrompt.googleTextBisonRequest.parameters.topP"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.temperature"
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
path: "materializedPrompt.googleChatBisonRequest.parameters.topP"
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
path: "materializedPrompt.azureChatCompletionRequest.temperature"
|
|
2269
|
+
},
|
|
2270
|
+
{ path: "materializedPrompt.azureChatCompletionRequest.topP" },
|
|
2271
|
+
{
|
|
2272
|
+
path: "materializedPrompt.azureChatCompletionRequest.presencePenalty"
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
path: "materializedPrompt.azureChatCompletionRequest.frequencyPenalty"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
path: "materializedPrompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
2282
|
+
},
|
|
2283
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.temperature" },
|
|
2284
|
+
{ path: "materializedPrompt.anthropicClaudeRequest.topP" },
|
|
2285
|
+
{
|
|
2286
|
+
path: "materializedPrompt.googleAnthropicClaudeRequest.temperature"
|
|
2287
|
+
},
|
|
2288
|
+
{ path: "materializedPrompt.googleAnthropicClaudeRequest.topP" },
|
|
2289
|
+
{
|
|
2290
|
+
path: "materializedPrompt.invokeAnthropicModelRequest.temperature"
|
|
2291
|
+
},
|
|
2292
|
+
{ path: "materializedPrompt.invokeAnthropicModelRequest.topP" },
|
|
2293
|
+
{
|
|
2294
|
+
path: "materializedPrompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
path: "materializedPrompt.stabilityAiStableDiffusionRequest.strength"
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
path: "materializedPrompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
path: "materializedPrompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
path: "materializedPrompt.stabilityAiEditWithPromptRequest.creativity"
|
|
2325
|
+
},
|
|
2326
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.strength" },
|
|
2327
|
+
{
|
|
2328
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
path: "materializedPrompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.temperature"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.topP"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
path: "materializedPrompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.temperature"
|
|
2350
|
+
},
|
|
2351
|
+
{ path: "materializedPrompt.mlPlatformOpenAiRawRequest.topP" },
|
|
2352
|
+
{
|
|
2353
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.presencePenalty"
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
path: "materializedPrompt.mlPlatformOpenAiRawRequest.frequencyPenalty"
|
|
2357
|
+
},
|
|
2358
|
+
{ path: "materializedPrompt.openAiResponsesRequest.temperature" },
|
|
2359
|
+
{ path: "materializedPrompt.openAiResponsesRequest.topP" },
|
|
2360
|
+
{
|
|
2361
|
+
path: "materializedPrompt.azureOpenAiResponsesRequest.temperature"
|
|
2362
|
+
},
|
|
2363
|
+
{ path: "materializedPrompt.azureOpenAiResponsesRequest.topP" },
|
|
2364
|
+
{
|
|
2365
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
2366
|
+
isRepeated: true
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.retrievalMetadata.googleSearchDynamicRetrievalScore"
|
|
2370
|
+
},
|
|
2371
|
+
{ path: "materializedPrompt.llamaModelRequest.temperature" },
|
|
2372
|
+
{ path: "materializedPrompt.llamaModelRequest.topP" },
|
|
2373
|
+
{ path: "materializedPrompt.runwareTextToImageRequest.cfgScale" },
|
|
2374
|
+
{
|
|
2375
|
+
path: "materializedPrompt.runwareTextToImageRequest.loraModels.weight"
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
path: "materializedPrompt.mlPlatformLlamaModelRequest.temperature"
|
|
2379
|
+
},
|
|
2380
|
+
{ path: "materializedPrompt.mlPlatformLlamaModelRequest.topP" },
|
|
2381
|
+
{
|
|
2382
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.temperature"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topP"
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.topK"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.presencePenalty"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
path: "materializedPrompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
path: "materializedPrompt.runwareVideoInferenceRequest.cfgScale"
|
|
2398
|
+
}
|
|
2399
|
+
]
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
2403
|
+
paths: [
|
|
2404
|
+
{
|
|
2405
|
+
path: "response.googleGeminiGenerateContentResponse.candidates.groundingMetadata.searchEntryPoint.sdkBlob"
|
|
2406
|
+
}
|
|
2407
|
+
]
|
|
2408
|
+
}
|
|
2409
|
+
])
|
|
2410
|
+
};
|
|
2411
|
+
return metadata;
|
|
2412
|
+
}
|
|
2413
|
+
return __generateContentByPromptObject;
|
|
2414
|
+
}
|
|
2415
|
+
function generateTranscription(payload) {
|
|
2416
|
+
function __generateTranscription({ host }) {
|
|
2417
|
+
const serializedData = transformPaths(payload, [
|
|
2418
|
+
{
|
|
2419
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2420
|
+
paths: [{ path: "openAiTranscriptionRequest.temperature" }]
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
transformFn: transformSDKBytesToRESTBytes,
|
|
2424
|
+
paths: [{ path: "openAiTranscriptionRequest.fileContent.fileBytes" }]
|
|
2425
|
+
}
|
|
2426
|
+
]);
|
|
2427
|
+
const metadata = {
|
|
2428
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2429
|
+
method: "POST",
|
|
2430
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateTranscription",
|
|
2431
|
+
packageName: PACKAGE_NAME,
|
|
2432
|
+
migrationOptions: {
|
|
2433
|
+
optInTransformResponse: true
|
|
2434
|
+
},
|
|
2435
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2436
|
+
protoPath: "/v1/generate-transcription",
|
|
2437
|
+
data: serializedData,
|
|
2438
|
+
host
|
|
2439
|
+
}),
|
|
2440
|
+
data: serializedData,
|
|
2441
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2442
|
+
{
|
|
2443
|
+
transformFn: transformRESTDurationToSDKDuration,
|
|
2444
|
+
paths: [
|
|
2445
|
+
{ path: "openAiTranscriptionResponse.duration" },
|
|
2446
|
+
{ path: "openAiTranscriptionResponse.words.start" },
|
|
2447
|
+
{ path: "openAiTranscriptionResponse.words.end" },
|
|
2448
|
+
{ path: "openAiTranscriptionResponse.segments.start" },
|
|
2449
|
+
{ path: "openAiTranscriptionResponse.segments.end" }
|
|
2450
|
+
]
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
2454
|
+
paths: [
|
|
2455
|
+
{ path: "openAiTranscriptionResponse.segments.temperature" },
|
|
2456
|
+
{ path: "openAiTranscriptionResponse.segments.avgLogprob" },
|
|
2457
|
+
{ path: "openAiTranscriptionResponse.segments.compressionRatio" },
|
|
2458
|
+
{ path: "openAiTranscriptionResponse.segments.noSpeechProb" }
|
|
2459
|
+
]
|
|
2460
|
+
}
|
|
2461
|
+
])
|
|
2462
|
+
};
|
|
2463
|
+
return metadata;
|
|
2464
|
+
}
|
|
2465
|
+
return __generateTranscription;
|
|
2466
|
+
}
|
|
2467
|
+
function generateAudio(payload) {
|
|
2468
|
+
function __generateAudio({ host }) {
|
|
2469
|
+
const serializedData = transformPaths(payload, [
|
|
2470
|
+
{
|
|
2471
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2472
|
+
paths: [
|
|
2473
|
+
{ path: "openAiCreateSpeechRequest.speed" },
|
|
2474
|
+
{ path: "elevenlabsTextToSpeechRequest.voiceSettings.style" },
|
|
2475
|
+
{ path: "elevenlabsTextToSpeechRequest.voiceSettings.stability" },
|
|
2476
|
+
{
|
|
2477
|
+
path: "elevenlabsTextToSpeechRequest.voiceSettings.similarityBoost"
|
|
2478
|
+
}
|
|
2479
|
+
]
|
|
2480
|
+
}
|
|
2481
|
+
]);
|
|
2482
|
+
const metadata = {
|
|
2483
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2484
|
+
method: "POST",
|
|
2485
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateAudio",
|
|
2486
|
+
packageName: PACKAGE_NAME,
|
|
2487
|
+
migrationOptions: {
|
|
2488
|
+
optInTransformResponse: true
|
|
2489
|
+
},
|
|
2490
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2491
|
+
protoPath: "/v1/generate-audio",
|
|
2492
|
+
data: serializedData,
|
|
2493
|
+
host
|
|
2494
|
+
}),
|
|
2495
|
+
data: serializedData
|
|
2496
|
+
};
|
|
2497
|
+
return metadata;
|
|
2498
|
+
}
|
|
2499
|
+
return __generateAudio;
|
|
2500
|
+
}
|
|
2501
|
+
function generateAudioStreamed(payload) {
|
|
2502
|
+
function __generateAudioStreamed({ host }) {
|
|
2503
|
+
const serializedData = transformPaths(payload, [
|
|
2504
|
+
{
|
|
2505
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2506
|
+
paths: [
|
|
2507
|
+
{ path: "openAiCreateSpeechRequest.speed" },
|
|
2508
|
+
{ path: "elevenlabsTextToSpeechRequest.voiceSettings.style" },
|
|
2509
|
+
{ path: "elevenlabsTextToSpeechRequest.voiceSettings.stability" },
|
|
2510
|
+
{
|
|
2511
|
+
path: "elevenlabsTextToSpeechRequest.voiceSettings.similarityBoost"
|
|
2512
|
+
}
|
|
2513
|
+
]
|
|
2514
|
+
}
|
|
2515
|
+
]);
|
|
2516
|
+
const metadata = {
|
|
2517
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2518
|
+
method: "POST",
|
|
2519
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GenerateAudioStreamed",
|
|
2520
|
+
packageName: PACKAGE_NAME,
|
|
2521
|
+
migrationOptions: {
|
|
2522
|
+
optInTransformResponse: true
|
|
2523
|
+
},
|
|
2524
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2525
|
+
protoPath: "/v1/generate-audio-streamed",
|
|
2526
|
+
data: serializedData,
|
|
2527
|
+
host
|
|
2528
|
+
}),
|
|
2529
|
+
data: serializedData,
|
|
2530
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2531
|
+
{
|
|
2532
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
2533
|
+
paths: [
|
|
2534
|
+
{ path: "openAiSpeechChunk.content" },
|
|
2535
|
+
{ path: "elevenlabsSpeechChunk.audioBase64" }
|
|
2536
|
+
]
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
2540
|
+
paths: [
|
|
2541
|
+
{
|
|
2542
|
+
path: "elevenlabsSpeechChunk.alignment.characterStartTimesSeconds",
|
|
2543
|
+
isRepeated: true
|
|
2544
|
+
},
|
|
2545
|
+
{
|
|
2546
|
+
path: "elevenlabsSpeechChunk.alignment.characterEndTimesSeconds",
|
|
2547
|
+
isRepeated: true
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
path: "elevenlabsSpeechChunk.normalizedAlignment.characterStartTimesSeconds",
|
|
2551
|
+
isRepeated: true
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
path: "elevenlabsSpeechChunk.normalizedAlignment.characterEndTimesSeconds",
|
|
2555
|
+
isRepeated: true
|
|
2556
|
+
}
|
|
2557
|
+
]
|
|
2558
|
+
}
|
|
2559
|
+
])
|
|
2560
|
+
};
|
|
2561
|
+
return metadata;
|
|
2562
|
+
}
|
|
2563
|
+
return __generateAudioStreamed;
|
|
2564
|
+
}
|
|
2565
|
+
function publishPrompt(payload) {
|
|
2566
|
+
function __publishPrompt({ host }) {
|
|
2567
|
+
const serializedData = transformPaths(payload, [
|
|
2568
|
+
{
|
|
2569
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2570
|
+
paths: [
|
|
2571
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
2572
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
2573
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
2574
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
2575
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
2576
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
2577
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
2578
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
2579
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
2580
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
2581
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
2582
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
2583
|
+
{
|
|
2584
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
2588
|
+
},
|
|
2589
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
2590
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
2591
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
2592
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
2593
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
2594
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
2595
|
+
{ path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight" },
|
|
2596
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
2597
|
+
{
|
|
2598
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
2599
|
+
},
|
|
2600
|
+
{ path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg" },
|
|
2601
|
+
{
|
|
2602
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
2612
|
+
},
|
|
2613
|
+
{
|
|
2614
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
2618
|
+
},
|
|
2619
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
2620
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
2621
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg" },
|
|
2622
|
+
{ path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight" },
|
|
2623
|
+
{
|
|
2624
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
2625
|
+
},
|
|
2626
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
2627
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
2628
|
+
{ path: "prompt.googleCreateChatCompletionRequest.presencePenalty" },
|
|
2629
|
+
{ path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty" },
|
|
2630
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
2631
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
2632
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
2633
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
2634
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
2635
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
2636
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
2637
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
2638
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
2639
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
2640
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
2641
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
2642
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
2643
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
2644
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
2645
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
2646
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
2647
|
+
{ path: "prompt.perplexityChatCompletionRequest.presencePenalty" },
|
|
2648
|
+
{ path: "prompt.perplexityChatCompletionRequest.frequencyPenalty" },
|
|
2649
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
2650
|
+
]
|
|
2651
|
+
}
|
|
2652
|
+
]);
|
|
2653
|
+
const metadata = {
|
|
2654
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2655
|
+
method: "POST",
|
|
2656
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.PublishPrompt",
|
|
2657
|
+
packageName: PACKAGE_NAME,
|
|
2658
|
+
migrationOptions: {
|
|
2659
|
+
optInTransformResponse: true
|
|
2660
|
+
},
|
|
2661
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2662
|
+
protoPath: "/v1/prompt/{prompt.id}",
|
|
2663
|
+
data: serializedData,
|
|
2664
|
+
host
|
|
2665
|
+
}),
|
|
2666
|
+
data: serializedData
|
|
2667
|
+
};
|
|
2668
|
+
return metadata;
|
|
2669
|
+
}
|
|
2670
|
+
return __publishPrompt;
|
|
2671
|
+
}
|
|
2672
|
+
function getPrompt(payload) {
|
|
2673
|
+
function __getPrompt({ host }) {
|
|
2674
|
+
const metadata = {
|
|
2675
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2676
|
+
method: "GET",
|
|
2677
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GetPrompt",
|
|
2678
|
+
packageName: PACKAGE_NAME,
|
|
2679
|
+
migrationOptions: {
|
|
2680
|
+
optInTransformResponse: true
|
|
2681
|
+
},
|
|
2682
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2683
|
+
protoPath: "/v1/prompt/{promptId}",
|
|
2684
|
+
data: payload,
|
|
2685
|
+
host
|
|
2686
|
+
}),
|
|
2687
|
+
params: toURLSearchParams(payload, true),
|
|
2688
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2689
|
+
{
|
|
2690
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
2691
|
+
paths: [
|
|
2692
|
+
{ path: "prompt.openAiChatCompletionRequest.temperature" },
|
|
2693
|
+
{ path: "prompt.openAiChatCompletionRequest.topP" },
|
|
2694
|
+
{ path: "prompt.openAiChatCompletionRequest.presencePenalty" },
|
|
2695
|
+
{ path: "prompt.openAiChatCompletionRequest.frequencyPenalty" },
|
|
2696
|
+
{ path: "prompt.googleTextBisonRequest.parameters.temperature" },
|
|
2697
|
+
{ path: "prompt.googleTextBisonRequest.parameters.topP" },
|
|
2698
|
+
{ path: "prompt.googleChatBisonRequest.parameters.temperature" },
|
|
2699
|
+
{ path: "prompt.googleChatBisonRequest.parameters.topP" },
|
|
2700
|
+
{ path: "prompt.azureChatCompletionRequest.temperature" },
|
|
2701
|
+
{ path: "prompt.azureChatCompletionRequest.topP" },
|
|
2702
|
+
{ path: "prompt.azureChatCompletionRequest.presencePenalty" },
|
|
2703
|
+
{ path: "prompt.azureChatCompletionRequest.frequencyPenalty" },
|
|
2704
|
+
{
|
|
2705
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.temperature"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
path: "prompt.googleGeminiGenerateContentRequest.generationConfig.topP"
|
|
2709
|
+
},
|
|
2710
|
+
{ path: "prompt.anthropicClaudeRequest.temperature" },
|
|
2711
|
+
{ path: "prompt.anthropicClaudeRequest.topP" },
|
|
2712
|
+
{ path: "prompt.googleAnthropicClaudeRequest.temperature" },
|
|
2713
|
+
{ path: "prompt.googleAnthropicClaudeRequest.topP" },
|
|
2714
|
+
{ path: "prompt.invokeAnthropicModelRequest.temperature" },
|
|
2715
|
+
{ path: "prompt.invokeAnthropicModelRequest.topP" },
|
|
2716
|
+
{
|
|
2717
|
+
path: "prompt.stabilityAiTextToImageRequest.textPrompts.weight"
|
|
2718
|
+
},
|
|
2719
|
+
{ path: "prompt.stabilityAiStableDiffusionRequest.strength" },
|
|
2720
|
+
{
|
|
2721
|
+
path: "prompt.blackForestLabsGenerateImageRequest.imagePromptStrength"
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.trueCfg"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.idWeight"
|
|
2728
|
+
},
|
|
2729
|
+
{
|
|
2730
|
+
path: "prompt.replicateCreatePredictionRequest.fluxPulid.guidanceScale"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.loraStrength"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.guidanceScale"
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.controlStrength"
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
path: "prompt.replicateCreatePredictionRequest.fluxDevControlnet.imageToImageStrength"
|
|
2743
|
+
},
|
|
2744
|
+
{ path: "prompt.stabilityAiEditWithPromptRequest.creativity" },
|
|
2745
|
+
{ path: "prompt.runwareTextToImageRequest.strength" },
|
|
2746
|
+
{
|
|
2747
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.trueCfg"
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.idWeight"
|
|
2751
|
+
},
|
|
2752
|
+
{
|
|
2753
|
+
path: "prompt.mlPlatformGenerateImageRequest.fluxPulid.guidanceScale"
|
|
2754
|
+
},
|
|
2755
|
+
{ path: "prompt.googleCreateChatCompletionRequest.temperature" },
|
|
2756
|
+
{ path: "prompt.googleCreateChatCompletionRequest.topP" },
|
|
2757
|
+
{
|
|
2758
|
+
path: "prompt.googleCreateChatCompletionRequest.presencePenalty"
|
|
2759
|
+
},
|
|
2760
|
+
{
|
|
2761
|
+
path: "prompt.googleCreateChatCompletionRequest.frequencyPenalty"
|
|
2762
|
+
},
|
|
2763
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.temperature" },
|
|
2764
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.topP" },
|
|
2765
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.presencePenalty" },
|
|
2766
|
+
{ path: "prompt.mlPlatformOpenAiRawRequest.frequencyPenalty" },
|
|
2767
|
+
{ path: "prompt.openAiResponsesRequest.temperature" },
|
|
2768
|
+
{ path: "prompt.openAiResponsesRequest.topP" },
|
|
2769
|
+
{ path: "prompt.azureOpenAiResponsesRequest.temperature" },
|
|
2770
|
+
{ path: "prompt.azureOpenAiResponsesRequest.topP" },
|
|
2771
|
+
{ path: "prompt.llamaModelRequest.temperature" },
|
|
2772
|
+
{ path: "prompt.llamaModelRequest.topP" },
|
|
2773
|
+
{ path: "prompt.runwareTextToImageRequest.cfgScale" },
|
|
2774
|
+
{ path: "prompt.runwareTextToImageRequest.loraModels.weight" },
|
|
2775
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.temperature" },
|
|
2776
|
+
{ path: "prompt.mlPlatformLlamaModelRequest.topP" },
|
|
2777
|
+
{ path: "prompt.perplexityChatCompletionRequest.temperature" },
|
|
2778
|
+
{ path: "prompt.perplexityChatCompletionRequest.topP" },
|
|
2779
|
+
{ path: "prompt.perplexityChatCompletionRequest.topK" },
|
|
2780
|
+
{
|
|
2781
|
+
path: "prompt.perplexityChatCompletionRequest.presencePenalty"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
path: "prompt.perplexityChatCompletionRequest.frequencyPenalty"
|
|
2785
|
+
},
|
|
2786
|
+
{ path: "prompt.runwareVideoInferenceRequest.cfgScale" }
|
|
2787
|
+
]
|
|
2788
|
+
}
|
|
2789
|
+
])
|
|
2790
|
+
};
|
|
2791
|
+
return metadata;
|
|
2792
|
+
}
|
|
2793
|
+
return __getPrompt;
|
|
2794
|
+
}
|
|
2795
|
+
function publishProject(payload) {
|
|
2796
|
+
function __publishProject({ host }) {
|
|
2797
|
+
const metadata = {
|
|
2798
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2799
|
+
method: "POST",
|
|
2800
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.PublishProject",
|
|
2801
|
+
packageName: PACKAGE_NAME,
|
|
2802
|
+
migrationOptions: {
|
|
2803
|
+
optInTransformResponse: true
|
|
2804
|
+
},
|
|
2805
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2806
|
+
protoPath: "/v1/project/{project.id}",
|
|
2807
|
+
data: payload,
|
|
2808
|
+
host
|
|
2809
|
+
}),
|
|
2810
|
+
data: payload
|
|
2811
|
+
};
|
|
2812
|
+
return metadata;
|
|
2813
|
+
}
|
|
2814
|
+
return __publishProject;
|
|
2815
|
+
}
|
|
2816
|
+
function getProject(payload) {
|
|
2817
|
+
function __getProject({ host }) {
|
|
2818
|
+
const metadata = {
|
|
2819
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2820
|
+
method: "GET",
|
|
2821
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GetProject",
|
|
2822
|
+
packageName: PACKAGE_NAME,
|
|
2823
|
+
migrationOptions: {
|
|
2824
|
+
optInTransformResponse: true
|
|
2825
|
+
},
|
|
2826
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2827
|
+
protoPath: "/v1/project/{projectId}",
|
|
2828
|
+
data: payload,
|
|
2829
|
+
host
|
|
2830
|
+
}),
|
|
2831
|
+
params: toURLSearchParams(payload)
|
|
2832
|
+
};
|
|
2833
|
+
return metadata;
|
|
2834
|
+
}
|
|
2835
|
+
return __getProject;
|
|
2836
|
+
}
|
|
2837
|
+
function getStatus(payload) {
|
|
2838
|
+
function __getStatus({ host }) {
|
|
2839
|
+
const metadata = {
|
|
2840
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2841
|
+
method: "GET",
|
|
2842
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GetStatus",
|
|
2843
|
+
packageName: PACKAGE_NAME,
|
|
2844
|
+
migrationOptions: {
|
|
2845
|
+
optInTransformResponse: true
|
|
2846
|
+
},
|
|
2847
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2848
|
+
protoPath: "/v1/status/{entityId}",
|
|
2849
|
+
data: payload,
|
|
2850
|
+
host
|
|
2851
|
+
}),
|
|
2852
|
+
params: toURLSearchParams(payload)
|
|
2853
|
+
};
|
|
2854
|
+
return metadata;
|
|
2855
|
+
}
|
|
2856
|
+
return __getStatus;
|
|
2857
|
+
}
|
|
2858
|
+
function getApplicationUsage(payload) {
|
|
2859
|
+
function __getApplicationUsage({ host }) {
|
|
2860
|
+
const metadata = {
|
|
2861
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2862
|
+
method: "GET",
|
|
2863
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.GetApplicationUsage",
|
|
2864
|
+
packageName: PACKAGE_NAME,
|
|
2865
|
+
migrationOptions: {
|
|
2866
|
+
optInTransformResponse: true
|
|
2867
|
+
},
|
|
2868
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2869
|
+
protoPath: "/v1/application-usage",
|
|
2870
|
+
data: payload,
|
|
2871
|
+
host
|
|
2872
|
+
}),
|
|
2873
|
+
params: toURLSearchParams(payload)
|
|
2874
|
+
};
|
|
2875
|
+
return metadata;
|
|
2876
|
+
}
|
|
2877
|
+
return __getApplicationUsage;
|
|
2878
|
+
}
|
|
2879
|
+
function editImage(payload) {
|
|
2880
|
+
function __editImage({ host }) {
|
|
2881
|
+
const serializedData = transformPaths(payload, [
|
|
2882
|
+
{
|
|
2883
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
2884
|
+
paths: [
|
|
2885
|
+
{ path: "photoroomImageEditingRequest.background.guidance.scale" },
|
|
2886
|
+
{ path: "photoroomImageEditingRequest.margin.general" },
|
|
2887
|
+
{ path: "photoroomImageEditingRequest.margin.bottom" },
|
|
2888
|
+
{ path: "photoroomImageEditingRequest.margin.left" },
|
|
2889
|
+
{ path: "photoroomImageEditingRequest.margin.right" },
|
|
2890
|
+
{ path: "photoroomImageEditingRequest.margin.top" }
|
|
2891
|
+
]
|
|
2892
|
+
}
|
|
2893
|
+
]);
|
|
2894
|
+
const metadata = {
|
|
2895
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2896
|
+
method: "POST",
|
|
2897
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.EditImage",
|
|
2898
|
+
packageName: PACKAGE_NAME,
|
|
2899
|
+
migrationOptions: {
|
|
2900
|
+
optInTransformResponse: true
|
|
2901
|
+
},
|
|
2902
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2903
|
+
protoPath: "/v1/edit-image",
|
|
2904
|
+
data: serializedData,
|
|
2905
|
+
host
|
|
2906
|
+
}),
|
|
2907
|
+
data: serializedData,
|
|
2908
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
2909
|
+
{
|
|
2910
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
2911
|
+
paths: [
|
|
2912
|
+
{ path: "photoroomRemoveBackgroundResponse.xUncertaintyScore" },
|
|
2913
|
+
{ path: "photoroomImageEditingResponse.xUncertaintyScore" },
|
|
2914
|
+
{ path: "replicateEditImageResponse.metrics.predictTime" },
|
|
2915
|
+
{ path: "replicateEditImageResponse.metrics.totalTime" }
|
|
2916
|
+
]
|
|
2917
|
+
}
|
|
2918
|
+
])
|
|
2919
|
+
};
|
|
2920
|
+
return metadata;
|
|
2921
|
+
}
|
|
2922
|
+
return __editImage;
|
|
2923
|
+
}
|
|
2924
|
+
function pollImageGenerationResult(payload) {
|
|
2925
|
+
function __pollImageGenerationResult({ host }) {
|
|
2926
|
+
const metadata = {
|
|
2927
|
+
entityFqdn: "wix.ds.wix_ai_gateway.v1.prompt",
|
|
2928
|
+
method: "POST",
|
|
2929
|
+
methodFqn: "wix.ds.wix_ai_gateway.v1.WixAiGateway.PollImageGenerationResult",
|
|
2930
|
+
packageName: PACKAGE_NAME,
|
|
2931
|
+
migrationOptions: {
|
|
2932
|
+
optInTransformResponse: true
|
|
2933
|
+
},
|
|
2934
|
+
url: resolveWixDsWixAiGatewayV1WixAiGatewayUrl({
|
|
2935
|
+
protoPath: "/v1/poll-image-generation-result",
|
|
2936
|
+
data: payload,
|
|
2937
|
+
host
|
|
2938
|
+
}),
|
|
2939
|
+
data: payload
|
|
2940
|
+
};
|
|
2941
|
+
return metadata;
|
|
2942
|
+
}
|
|
2943
|
+
return __pollImageGenerationResult;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
// src/ds-wix-ai-gateway-v1-prompt-generators.universal.ts
|
|
2947
|
+
var OpenaiproxyV1Model = /* @__PURE__ */ ((OpenaiproxyV1Model2) => {
|
|
2948
|
+
OpenaiproxyV1Model2["UNKNOWN"] = "UNKNOWN";
|
|
2949
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO"] = "GPT_3_5_TURBO";
|
|
2950
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_0301"] = "GPT_3_5_TURBO_0301";
|
|
2951
|
+
OpenaiproxyV1Model2["GPT_4"] = "GPT_4";
|
|
2952
|
+
OpenaiproxyV1Model2["GPT_4_0314"] = "GPT_4_0314";
|
|
2953
|
+
OpenaiproxyV1Model2["GPT_4_32K"] = "GPT_4_32K";
|
|
2954
|
+
OpenaiproxyV1Model2["GPT_4_32K_0314"] = "GPT_4_32K_0314";
|
|
2955
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_0613"] = "GPT_3_5_TURBO_0613";
|
|
2956
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_16K"] = "GPT_3_5_TURBO_16K";
|
|
2957
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_16K_0613"] = "GPT_3_5_TURBO_16K_0613";
|
|
2958
|
+
OpenaiproxyV1Model2["GPT_4_0613"] = "GPT_4_0613";
|
|
2959
|
+
OpenaiproxyV1Model2["GPT_4_32K_0613"] = "GPT_4_32K_0613";
|
|
2960
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_1106"] = "GPT_3_5_TURBO_1106";
|
|
2961
|
+
OpenaiproxyV1Model2["GPT_4_1106_PREVIEW"] = "GPT_4_1106_PREVIEW";
|
|
2962
|
+
OpenaiproxyV1Model2["GPT_4_VISION_PREVIEW"] = "GPT_4_VISION_PREVIEW";
|
|
2963
|
+
OpenaiproxyV1Model2["GPT_4_TURBO_PREVIEW"] = "GPT_4_TURBO_PREVIEW";
|
|
2964
|
+
OpenaiproxyV1Model2["GPT_4_0125_PREVIEW"] = "GPT_4_0125_PREVIEW";
|
|
2965
|
+
OpenaiproxyV1Model2["GPT_3_5_TURBO_0125"] = "GPT_3_5_TURBO_0125";
|
|
2966
|
+
OpenaiproxyV1Model2["GPT_4_TURBO_2024_04_09"] = "GPT_4_TURBO_2024_04_09";
|
|
2967
|
+
OpenaiproxyV1Model2["GPT_4O_2024_05_13"] = "GPT_4O_2024_05_13";
|
|
2968
|
+
OpenaiproxyV1Model2["GPT_4O_MINI_2024_07_18"] = "GPT_4O_MINI_2024_07_18";
|
|
2969
|
+
OpenaiproxyV1Model2["GPT_4O_2024_08_06"] = "GPT_4O_2024_08_06";
|
|
2970
|
+
OpenaiproxyV1Model2["O1_PREVIEW"] = "O1_PREVIEW";
|
|
2971
|
+
OpenaiproxyV1Model2["O1_PREVIEW_2024_09_12"] = "O1_PREVIEW_2024_09_12";
|
|
2972
|
+
OpenaiproxyV1Model2["O1_MINI"] = "O1_MINI";
|
|
2973
|
+
OpenaiproxyV1Model2["O1_MINI_2024_09_12"] = "O1_MINI_2024_09_12";
|
|
2974
|
+
OpenaiproxyV1Model2["GPT_4O_2024_11_20"] = "GPT_4O_2024_11_20";
|
|
2975
|
+
OpenaiproxyV1Model2["O1_2024_12_17"] = "O1_2024_12_17";
|
|
2976
|
+
OpenaiproxyV1Model2["O3_MINI_2025_01_31"] = "O3_MINI_2025_01_31";
|
|
2977
|
+
OpenaiproxyV1Model2["GPT_4_OLD"] = "GPT_4_OLD";
|
|
2978
|
+
OpenaiproxyV1Model2["GPT_4_1_2025_04_14"] = "GPT_4_1_2025_04_14";
|
|
2979
|
+
OpenaiproxyV1Model2["GPT_4_1_MINI_2025_04_14"] = "GPT_4_1_MINI_2025_04_14";
|
|
2980
|
+
OpenaiproxyV1Model2["GPT_4_1_NANO_2025_04_14"] = "GPT_4_1_NANO_2025_04_14";
|
|
2981
|
+
OpenaiproxyV1Model2["O3_2025_04_16"] = "O3_2025_04_16";
|
|
2982
|
+
OpenaiproxyV1Model2["O4_MINI_2025_04_16"] = "O4_MINI_2025_04_16";
|
|
2983
|
+
OpenaiproxyV1Model2["GPT_EXP"] = "GPT_EXP";
|
|
2984
|
+
OpenaiproxyV1Model2["GPT_EXP_2"] = "GPT_EXP_2";
|
|
2985
|
+
OpenaiproxyV1Model2["GPT_5_2025_08_07"] = "GPT_5_2025_08_07";
|
|
2986
|
+
OpenaiproxyV1Model2["GPT_5_MINI_2025_08_07"] = "GPT_5_MINI_2025_08_07";
|
|
2987
|
+
OpenaiproxyV1Model2["GPT_5_NANO_2025_08_07"] = "GPT_5_NANO_2025_08_07";
|
|
2988
|
+
return OpenaiproxyV1Model2;
|
|
2989
|
+
})(OpenaiproxyV1Model || {});
|
|
2990
|
+
var OpenaiproxyV1ChatCompletionMessageMessageRole = /* @__PURE__ */ ((OpenaiproxyV1ChatCompletionMessageMessageRole2) => {
|
|
2991
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["UNKNOWN"] = "UNKNOWN";
|
|
2992
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["USER"] = "USER";
|
|
2993
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["ASSISTANT"] = "ASSISTANT";
|
|
2994
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["SYSTEM"] = "SYSTEM";
|
|
2995
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["FUNCTION"] = "FUNCTION";
|
|
2996
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["TOOL"] = "TOOL";
|
|
2997
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole2["DEVELOPER"] = "DEVELOPER";
|
|
2998
|
+
return OpenaiproxyV1ChatCompletionMessageMessageRole2;
|
|
2999
|
+
})(OpenaiproxyV1ChatCompletionMessageMessageRole || {});
|
|
3000
|
+
var TextBisonModel = /* @__PURE__ */ ((TextBisonModel2) => {
|
|
3001
|
+
TextBisonModel2["UNKNOWN_TEXT_BISON_MODEL"] = "UNKNOWN_TEXT_BISON_MODEL";
|
|
3002
|
+
TextBisonModel2["TEXT_BISON"] = "TEXT_BISON";
|
|
3003
|
+
TextBisonModel2["TEXT_BISON_001"] = "TEXT_BISON_001";
|
|
3004
|
+
TextBisonModel2["TEXT_BISON_32K"] = "TEXT_BISON_32K";
|
|
3005
|
+
TextBisonModel2["TEXT_BISON_002"] = "TEXT_BISON_002";
|
|
3006
|
+
TextBisonModel2["TEXT_BISON_32K_002"] = "TEXT_BISON_32K_002";
|
|
3007
|
+
return TextBisonModel2;
|
|
3008
|
+
})(TextBisonModel || {});
|
|
3009
|
+
var ChatBisonModel = /* @__PURE__ */ ((ChatBisonModel2) => {
|
|
3010
|
+
ChatBisonModel2["UNKNOWN_CHAT_BISON_MODEL"] = "UNKNOWN_CHAT_BISON_MODEL";
|
|
3011
|
+
ChatBisonModel2["CHAT_BISON"] = "CHAT_BISON";
|
|
3012
|
+
ChatBisonModel2["CHAT_BISON_001"] = "CHAT_BISON_001";
|
|
3013
|
+
ChatBisonModel2["CHAT_BISON_32K"] = "CHAT_BISON_32K";
|
|
3014
|
+
ChatBisonModel2["CHAT_BISON_002"] = "CHAT_BISON_002";
|
|
3015
|
+
ChatBisonModel2["CHAT_BISON_32K_002"] = "CHAT_BISON_32K_002";
|
|
3016
|
+
return ChatBisonModel2;
|
|
3017
|
+
})(ChatBisonModel || {});
|
|
3018
|
+
var V1Model = /* @__PURE__ */ ((V1Model2) => {
|
|
3019
|
+
V1Model2["UNKNOWN"] = "UNKNOWN";
|
|
3020
|
+
V1Model2["GPT_3_5_TURBO"] = "GPT_3_5_TURBO";
|
|
3021
|
+
V1Model2["GPT_3_5_TURBO_1106"] = "GPT_3_5_TURBO_1106";
|
|
3022
|
+
V1Model2["GPT_4_0613"] = "GPT_4_0613";
|
|
3023
|
+
V1Model2["GPT_3_5_TURBO_0125"] = "GPT_3_5_TURBO_0125";
|
|
3024
|
+
V1Model2["GPT_4O_2024_05_13"] = "GPT_4O_2024_05_13";
|
|
3025
|
+
V1Model2["GPT_4O_MINI_2024_07_18"] = "GPT_4O_MINI_2024_07_18";
|
|
3026
|
+
V1Model2["GPT_4_1_MINI_2025_04_14"] = "GPT_4_1_MINI_2025_04_14";
|
|
3027
|
+
V1Model2["GPT_4_1_NANO_2025_04_14"] = "GPT_4_1_NANO_2025_04_14";
|
|
3028
|
+
V1Model2["GPT_4_1_2025_04_14"] = "GPT_4_1_2025_04_14";
|
|
3029
|
+
V1Model2["GPT_4O_2024_11_20"] = "GPT_4O_2024_11_20";
|
|
3030
|
+
V1Model2["O4_MINI_2025_04_16"] = "O4_MINI_2025_04_16";
|
|
3031
|
+
return V1Model2;
|
|
3032
|
+
})(V1Model || {});
|
|
3033
|
+
var ChatCompletionMessageMessageRole = /* @__PURE__ */ ((ChatCompletionMessageMessageRole2) => {
|
|
3034
|
+
ChatCompletionMessageMessageRole2["UNKNOWN"] = "UNKNOWN";
|
|
3035
|
+
ChatCompletionMessageMessageRole2["USER"] = "USER";
|
|
3036
|
+
ChatCompletionMessageMessageRole2["ASSISTANT"] = "ASSISTANT";
|
|
3037
|
+
ChatCompletionMessageMessageRole2["SYSTEM"] = "SYSTEM";
|
|
3038
|
+
ChatCompletionMessageMessageRole2["FUNCTION"] = "FUNCTION";
|
|
3039
|
+
ChatCompletionMessageMessageRole2["TOOL"] = "TOOL";
|
|
3040
|
+
ChatCompletionMessageMessageRole2["DEVELOPER"] = "DEVELOPER";
|
|
3041
|
+
return ChatCompletionMessageMessageRole2;
|
|
3042
|
+
})(ChatCompletionMessageMessageRole || {});
|
|
3043
|
+
var GoogleproxyV1Model = /* @__PURE__ */ ((GoogleproxyV1Model2) => {
|
|
3044
|
+
GoogleproxyV1Model2["UNKNOWN_MODEL"] = "UNKNOWN_MODEL";
|
|
3045
|
+
GoogleproxyV1Model2["GEMINI_1_0_PRO"] = "GEMINI_1_0_PRO";
|
|
3046
|
+
GoogleproxyV1Model2["GEMINI_1_0_PRO_VISION"] = "GEMINI_1_0_PRO_VISION";
|
|
3047
|
+
GoogleproxyV1Model2["GEMINI_1_5_PRO"] = "GEMINI_1_5_PRO";
|
|
3048
|
+
GoogleproxyV1Model2["GEMINI_1_5_FLASH"] = "GEMINI_1_5_FLASH";
|
|
3049
|
+
GoogleproxyV1Model2["GEMINI_2_0_FLASH"] = "GEMINI_2_0_FLASH";
|
|
3050
|
+
GoogleproxyV1Model2["GEMINI_2_0_FLASH_LITE"] = "GEMINI_2_0_FLASH_LITE";
|
|
3051
|
+
GoogleproxyV1Model2["GEMINI_2_5_PRO"] = "GEMINI_2_5_PRO";
|
|
3052
|
+
GoogleproxyV1Model2["GEMINI_2_5_FLASH"] = "GEMINI_2_5_FLASH";
|
|
3053
|
+
GoogleproxyV1Model2["GEMINI_2_5_FLASH_LITE"] = "GEMINI_2_5_FLASH_LITE";
|
|
3054
|
+
GoogleproxyV1Model2["GEMINI_2_5_FLASH_IMAGE"] = "GEMINI_2_5_FLASH_IMAGE";
|
|
3055
|
+
return GoogleproxyV1Model2;
|
|
3056
|
+
})(GoogleproxyV1Model || {});
|
|
3057
|
+
var ContentRole = /* @__PURE__ */ ((ContentRole2) => {
|
|
3058
|
+
ContentRole2["UNKNOWN_CONTENT_ROLE"] = "UNKNOWN_CONTENT_ROLE";
|
|
3059
|
+
ContentRole2["USER"] = "USER";
|
|
3060
|
+
ContentRole2["MODEL"] = "MODEL";
|
|
3061
|
+
return ContentRole2;
|
|
3062
|
+
})(ContentRole || {});
|
|
3063
|
+
var Language = /* @__PURE__ */ ((Language2) => {
|
|
3064
|
+
Language2["LANGUAGE_UNSPECIFIED"] = "LANGUAGE_UNSPECIFIED";
|
|
3065
|
+
Language2["PYTHON"] = "PYTHON";
|
|
3066
|
+
return Language2;
|
|
3067
|
+
})(Language || {});
|
|
3068
|
+
var Outcome = /* @__PURE__ */ ((Outcome2) => {
|
|
3069
|
+
Outcome2["OUTCOME_UNSPECIFIED"] = "OUTCOME_UNSPECIFIED";
|
|
3070
|
+
Outcome2["OUTCOME_OK"] = "OUTCOME_OK";
|
|
3071
|
+
Outcome2["OUTCOME_FAILED"] = "OUTCOME_FAILED";
|
|
3072
|
+
Outcome2["OUTCOME_DEADLINE_EXCEEDED"] = "OUTCOME_DEADLINE_EXCEEDED";
|
|
3073
|
+
return Outcome2;
|
|
3074
|
+
})(Outcome || {});
|
|
3075
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
3076
|
+
Mode2["MODE_UNSPECIFIED"] = "MODE_UNSPECIFIED";
|
|
3077
|
+
Mode2["MODE_DYNAMIC"] = "MODE_DYNAMIC";
|
|
3078
|
+
return Mode2;
|
|
3079
|
+
})(Mode || {});
|
|
3080
|
+
var HarmCategory = /* @__PURE__ */ ((HarmCategory2) => {
|
|
3081
|
+
HarmCategory2["UNKNOWN_CATEGORY"] = "UNKNOWN_CATEGORY";
|
|
3082
|
+
HarmCategory2["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
|
|
3083
|
+
HarmCategory2["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
|
|
3084
|
+
HarmCategory2["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
|
|
3085
|
+
HarmCategory2["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
|
|
3086
|
+
return HarmCategory2;
|
|
3087
|
+
})(HarmCategory || {});
|
|
3088
|
+
var Threshold = /* @__PURE__ */ ((Threshold2) => {
|
|
3089
|
+
Threshold2["UNKNOWN_THRESHOLD"] = "UNKNOWN_THRESHOLD";
|
|
3090
|
+
Threshold2["BLOCK_NONE"] = "BLOCK_NONE";
|
|
3091
|
+
Threshold2["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
3092
|
+
Threshold2["BLOCK_MED_AND_ABOVE"] = "BLOCK_MED_AND_ABOVE";
|
|
3093
|
+
Threshold2["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
3094
|
+
return Threshold2;
|
|
3095
|
+
})(Threshold || {});
|
|
3096
|
+
var Modality = /* @__PURE__ */ ((Modality2) => {
|
|
3097
|
+
Modality2["UNKNOWN_MODALITY"] = "UNKNOWN_MODALITY";
|
|
3098
|
+
Modality2["TEXT"] = "TEXT";
|
|
3099
|
+
Modality2["IMAGE"] = "IMAGE";
|
|
3100
|
+
Modality2["AUDIO"] = "AUDIO";
|
|
3101
|
+
return Modality2;
|
|
3102
|
+
})(Modality || {});
|
|
3103
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
3104
|
+
Type2["UNKNOWN"] = "UNKNOWN";
|
|
3105
|
+
Type2["EPHEMERAL"] = "EPHEMERAL";
|
|
3106
|
+
return Type2;
|
|
3107
|
+
})(Type || {});
|
|
3108
|
+
var Model = /* @__PURE__ */ ((Model2) => {
|
|
3109
|
+
Model2["UNKNOWN"] = "UNKNOWN";
|
|
3110
|
+
Model2["CLAUDE_3_SONNET_1_0"] = "CLAUDE_3_SONNET_1_0";
|
|
3111
|
+
Model2["CLAUDE_3_HAIKU_1_0"] = "CLAUDE_3_HAIKU_1_0";
|
|
3112
|
+
Model2["CLAUDE_3_5_SONNET_1_0"] = "CLAUDE_3_5_SONNET_1_0";
|
|
3113
|
+
Model2["CLAUDE_3_5_SONNET_2_0"] = "CLAUDE_3_5_SONNET_2_0";
|
|
3114
|
+
Model2["CLAUDE_3_5_HAIKU_1_0"] = "CLAUDE_3_5_HAIKU_1_0";
|
|
3115
|
+
Model2["CLAUDE_3_7_SONNET_1_0"] = "CLAUDE_3_7_SONNET_1_0";
|
|
3116
|
+
Model2["CLAUDE_4_SONNET_1_0"] = "CLAUDE_4_SONNET_1_0";
|
|
3117
|
+
Model2["CLAUDE_4_OPUS_1_0"] = "CLAUDE_4_OPUS_1_0";
|
|
3118
|
+
return Model2;
|
|
3119
|
+
})(Model || {});
|
|
3120
|
+
var Role = /* @__PURE__ */ ((Role2) => {
|
|
3121
|
+
Role2["UNKNOWN"] = "UNKNOWN";
|
|
3122
|
+
Role2["USER"] = "USER";
|
|
3123
|
+
Role2["ASSISTANT"] = "ASSISTANT";
|
|
3124
|
+
return Role2;
|
|
3125
|
+
})(Role || {});
|
|
3126
|
+
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
3127
|
+
MediaType2["UNKNOWN"] = "UNKNOWN";
|
|
3128
|
+
MediaType2["IMAGE_JPEG"] = "IMAGE_JPEG";
|
|
3129
|
+
MediaType2["IMAGE_PNG"] = "IMAGE_PNG";
|
|
3130
|
+
MediaType2["IMAGE_WEBP"] = "IMAGE_WEBP";
|
|
3131
|
+
MediaType2["IMAGE_GIF"] = "IMAGE_GIF";
|
|
3132
|
+
return MediaType2;
|
|
3133
|
+
})(MediaType || {});
|
|
3134
|
+
var ToolChoiceType = /* @__PURE__ */ ((ToolChoiceType2) => {
|
|
3135
|
+
ToolChoiceType2["UNKNOWN"] = "UNKNOWN";
|
|
3136
|
+
ToolChoiceType2["AUTO"] = "AUTO";
|
|
3137
|
+
ToolChoiceType2["ANY"] = "ANY";
|
|
3138
|
+
ToolChoiceType2["TOOL"] = "TOOL";
|
|
3139
|
+
return ToolChoiceType2;
|
|
3140
|
+
})(ToolChoiceType || {});
|
|
3141
|
+
var McpServerType = /* @__PURE__ */ ((McpServerType2) => {
|
|
3142
|
+
McpServerType2["UNKNOWN"] = "UNKNOWN";
|
|
3143
|
+
McpServerType2["URL"] = "URL";
|
|
3144
|
+
return McpServerType2;
|
|
3145
|
+
})(McpServerType || {});
|
|
3146
|
+
var V1CacheControlType = /* @__PURE__ */ ((V1CacheControlType2) => {
|
|
3147
|
+
V1CacheControlType2["UNKNOWN"] = "UNKNOWN";
|
|
3148
|
+
V1CacheControlType2["EPHEMERAL"] = "EPHEMERAL";
|
|
3149
|
+
return V1CacheControlType2;
|
|
3150
|
+
})(V1CacheControlType || {});
|
|
3151
|
+
var ClaudeModel = /* @__PURE__ */ ((ClaudeModel2) => {
|
|
3152
|
+
ClaudeModel2["UNKNOWN_CLAUDE_MODEL"] = "UNKNOWN_CLAUDE_MODEL";
|
|
3153
|
+
ClaudeModel2["CLAUDE_3_SONNET_1_0"] = "CLAUDE_3_SONNET_1_0";
|
|
3154
|
+
ClaudeModel2["CLAUDE_3_HAIKU_1_0"] = "CLAUDE_3_HAIKU_1_0";
|
|
3155
|
+
ClaudeModel2["CLAUDE_3_OPUS_1_0"] = "CLAUDE_3_OPUS_1_0";
|
|
3156
|
+
ClaudeModel2["CLAUDE_3_5_SONNET_1_0"] = "CLAUDE_3_5_SONNET_1_0";
|
|
3157
|
+
ClaudeModel2["CLAUDE_3_5_SONNET_2_0"] = "CLAUDE_3_5_SONNET_2_0";
|
|
3158
|
+
ClaudeModel2["CLAUDE_3_7_SONNET_1_0"] = "CLAUDE_3_7_SONNET_1_0";
|
|
3159
|
+
ClaudeModel2["CLAUDE_4_SONNET_1_0"] = "CLAUDE_4_SONNET_1_0";
|
|
3160
|
+
ClaudeModel2["CLAUDE_4_OPUS_1_0"] = "CLAUDE_4_OPUS_1_0";
|
|
3161
|
+
return ClaudeModel2;
|
|
3162
|
+
})(ClaudeModel || {});
|
|
3163
|
+
var V1MessageRoleRole = /* @__PURE__ */ ((V1MessageRoleRole2) => {
|
|
3164
|
+
V1MessageRoleRole2["UNKNOWN"] = "UNKNOWN";
|
|
3165
|
+
V1MessageRoleRole2["USER"] = "USER";
|
|
3166
|
+
V1MessageRoleRole2["ASSISTANT"] = "ASSISTANT";
|
|
3167
|
+
return V1MessageRoleRole2;
|
|
3168
|
+
})(V1MessageRoleRole || {});
|
|
3169
|
+
var V1ImageMediaTypeMediaType = /* @__PURE__ */ ((V1ImageMediaTypeMediaType2) => {
|
|
3170
|
+
V1ImageMediaTypeMediaType2["UNKNOWN"] = "UNKNOWN";
|
|
3171
|
+
V1ImageMediaTypeMediaType2["IMAGE_JPEG"] = "IMAGE_JPEG";
|
|
3172
|
+
V1ImageMediaTypeMediaType2["IMAGE_PNG"] = "IMAGE_PNG";
|
|
3173
|
+
V1ImageMediaTypeMediaType2["IMAGE_WEBP"] = "IMAGE_WEBP";
|
|
3174
|
+
V1ImageMediaTypeMediaType2["IMAGE_GIF"] = "IMAGE_GIF";
|
|
3175
|
+
return V1ImageMediaTypeMediaType2;
|
|
3176
|
+
})(V1ImageMediaTypeMediaType || {});
|
|
3177
|
+
var GoogleproxyV1ToolChoiceType = /* @__PURE__ */ ((GoogleproxyV1ToolChoiceType2) => {
|
|
3178
|
+
GoogleproxyV1ToolChoiceType2["UNKNOWN"] = "UNKNOWN";
|
|
3179
|
+
GoogleproxyV1ToolChoiceType2["AUTO"] = "AUTO";
|
|
3180
|
+
GoogleproxyV1ToolChoiceType2["ANY"] = "ANY";
|
|
3181
|
+
GoogleproxyV1ToolChoiceType2["TOOL"] = "TOOL";
|
|
3182
|
+
return GoogleproxyV1ToolChoiceType2;
|
|
3183
|
+
})(GoogleproxyV1ToolChoiceType || {});
|
|
3184
|
+
var GoogleproxyV1McpServerType = /* @__PURE__ */ ((GoogleproxyV1McpServerType2) => {
|
|
3185
|
+
GoogleproxyV1McpServerType2["UNKNOWN"] = "UNKNOWN";
|
|
3186
|
+
GoogleproxyV1McpServerType2["URL"] = "URL";
|
|
3187
|
+
return GoogleproxyV1McpServerType2;
|
|
3188
|
+
})(GoogleproxyV1McpServerType || {});
|
|
3189
|
+
var AnthropicModel = /* @__PURE__ */ ((AnthropicModel2) => {
|
|
3190
|
+
AnthropicModel2["UNKNOWN_ANTHROPIC_MODEL"] = "UNKNOWN_ANTHROPIC_MODEL";
|
|
3191
|
+
AnthropicModel2["CLAUDE_3_HAIKU_1_0"] = "CLAUDE_3_HAIKU_1_0";
|
|
3192
|
+
AnthropicModel2["CLAUDE_3_5_SONNET_1_0"] = "CLAUDE_3_5_SONNET_1_0";
|
|
3193
|
+
AnthropicModel2["CLAUDE_3_5_SONNET_2_0"] = "CLAUDE_3_5_SONNET_2_0";
|
|
3194
|
+
AnthropicModel2["CLAUDE_3_7_SONNET_1_0"] = "CLAUDE_3_7_SONNET_1_0";
|
|
3195
|
+
AnthropicModel2["CLAUDE_4_SONNET_1_0"] = "CLAUDE_4_SONNET_1_0";
|
|
3196
|
+
AnthropicModel2["CLAUDE_4_OPUS_1_0"] = "CLAUDE_4_OPUS_1_0";
|
|
3197
|
+
AnthropicModel2["CLAUDE_4_1_OPUS_1_0"] = "CLAUDE_4_1_OPUS_1_0";
|
|
3198
|
+
return AnthropicModel2;
|
|
3199
|
+
})(AnthropicModel || {});
|
|
3200
|
+
var MessageRoleRole = /* @__PURE__ */ ((MessageRoleRole2) => {
|
|
3201
|
+
MessageRoleRole2["UNKNOWN"] = "UNKNOWN";
|
|
3202
|
+
MessageRoleRole2["USER"] = "USER";
|
|
3203
|
+
MessageRoleRole2["ASSISTANT"] = "ASSISTANT";
|
|
3204
|
+
return MessageRoleRole2;
|
|
3205
|
+
})(MessageRoleRole || {});
|
|
3206
|
+
var CacheControlType = /* @__PURE__ */ ((CacheControlType2) => {
|
|
3207
|
+
CacheControlType2["UNKNOWN"] = "UNKNOWN";
|
|
3208
|
+
CacheControlType2["EPHEMERAL"] = "EPHEMERAL";
|
|
3209
|
+
return CacheControlType2;
|
|
3210
|
+
})(CacheControlType || {});
|
|
3211
|
+
var ImageMediaTypeMediaType = /* @__PURE__ */ ((ImageMediaTypeMediaType2) => {
|
|
3212
|
+
ImageMediaTypeMediaType2["UNKNOWN"] = "UNKNOWN";
|
|
3213
|
+
ImageMediaTypeMediaType2["IMAGE_JPEG"] = "IMAGE_JPEG";
|
|
3214
|
+
ImageMediaTypeMediaType2["IMAGE_PNG"] = "IMAGE_PNG";
|
|
3215
|
+
ImageMediaTypeMediaType2["IMAGE_WEBP"] = "IMAGE_WEBP";
|
|
3216
|
+
ImageMediaTypeMediaType2["IMAGE_GIF"] = "IMAGE_GIF";
|
|
3217
|
+
return ImageMediaTypeMediaType2;
|
|
3218
|
+
})(ImageMediaTypeMediaType || {});
|
|
3219
|
+
var V1ToolChoiceType = /* @__PURE__ */ ((V1ToolChoiceType2) => {
|
|
3220
|
+
V1ToolChoiceType2["UNKNOWN"] = "UNKNOWN";
|
|
3221
|
+
V1ToolChoiceType2["AUTO"] = "AUTO";
|
|
3222
|
+
V1ToolChoiceType2["ANY"] = "ANY";
|
|
3223
|
+
V1ToolChoiceType2["TOOL"] = "TOOL";
|
|
3224
|
+
V1ToolChoiceType2["NONE"] = "NONE";
|
|
3225
|
+
return V1ToolChoiceType2;
|
|
3226
|
+
})(V1ToolChoiceType || {});
|
|
3227
|
+
var V1McpServerType = /* @__PURE__ */ ((V1McpServerType2) => {
|
|
3228
|
+
V1McpServerType2["UNKNOWN"] = "UNKNOWN";
|
|
3229
|
+
V1McpServerType2["URL"] = "URL";
|
|
3230
|
+
return V1McpServerType2;
|
|
3231
|
+
})(V1McpServerType || {});
|
|
3232
|
+
var LlamaModel = /* @__PURE__ */ ((LlamaModel2) => {
|
|
3233
|
+
LlamaModel2["UNKNOWN_LLAMA_MODEL"] = "UNKNOWN_LLAMA_MODEL";
|
|
3234
|
+
LlamaModel2["LLAMA_3_8B_INSTRUCT_1_0"] = "LLAMA_3_8B_INSTRUCT_1_0";
|
|
3235
|
+
LlamaModel2["LLAMA_3_70B_INSTRUCT_1_0"] = "LLAMA_3_70B_INSTRUCT_1_0";
|
|
3236
|
+
LlamaModel2["LLAMA_3_1_8B_INSTRUCT_1_0"] = "LLAMA_3_1_8B_INSTRUCT_1_0";
|
|
3237
|
+
LlamaModel2["LLAMA_3_1_70B_INSTRUCT_1_0"] = "LLAMA_3_1_70B_INSTRUCT_1_0";
|
|
3238
|
+
LlamaModel2["LLAMA_3_2_1B_INSTRUCT_1_0"] = "LLAMA_3_2_1B_INSTRUCT_1_0";
|
|
3239
|
+
LlamaModel2["LLAMA_3_2_3B_INSTRUCT_1_0"] = "LLAMA_3_2_3B_INSTRUCT_1_0";
|
|
3240
|
+
return LlamaModel2;
|
|
3241
|
+
})(LlamaModel || {});
|
|
3242
|
+
var V1ImageModel = /* @__PURE__ */ ((V1ImageModel2) => {
|
|
3243
|
+
V1ImageModel2["UNKNOWN_IMAGE_GENERATION_MODEL"] = "UNKNOWN_IMAGE_GENERATION_MODEL";
|
|
3244
|
+
V1ImageModel2["DALL_E_2"] = "DALL_E_2";
|
|
3245
|
+
V1ImageModel2["DALL_E_3"] = "DALL_E_3";
|
|
3246
|
+
return V1ImageModel2;
|
|
3247
|
+
})(V1ImageModel || {});
|
|
3248
|
+
var ImageQuality = /* @__PURE__ */ ((ImageQuality2) => {
|
|
3249
|
+
ImageQuality2["UNKNOWN_IMAGE_QUALITY"] = "UNKNOWN_IMAGE_QUALITY";
|
|
3250
|
+
ImageQuality2["STANDARD"] = "STANDARD";
|
|
3251
|
+
ImageQuality2["HD"] = "HD";
|
|
3252
|
+
return ImageQuality2;
|
|
3253
|
+
})(ImageQuality || {});
|
|
3254
|
+
var ImageSize = /* @__PURE__ */ ((ImageSize2) => {
|
|
3255
|
+
ImageSize2["UNKNOWN_IMAGE_SIZE"] = "UNKNOWN_IMAGE_SIZE";
|
|
3256
|
+
ImageSize2["SIZE_256X256"] = "SIZE_256X256";
|
|
3257
|
+
ImageSize2["SIZE_512X512"] = "SIZE_512X512";
|
|
3258
|
+
ImageSize2["SIZE_1024X1024"] = "SIZE_1024X1024";
|
|
3259
|
+
ImageSize2["SIZE_1792X1024"] = "SIZE_1792X1024";
|
|
3260
|
+
ImageSize2["SIZE_1024X1792"] = "SIZE_1024X1792";
|
|
3261
|
+
return ImageSize2;
|
|
3262
|
+
})(ImageSize || {});
|
|
3263
|
+
var ImageStyle = /* @__PURE__ */ ((ImageStyle2) => {
|
|
3264
|
+
ImageStyle2["UNKNOWN_IMAGE_STYLE"] = "UNKNOWN_IMAGE_STYLE";
|
|
3265
|
+
ImageStyle2["VIVID"] = "VIVID";
|
|
3266
|
+
ImageStyle2["NATURAL"] = "NATURAL";
|
|
3267
|
+
return ImageStyle2;
|
|
3268
|
+
})(ImageStyle || {});
|
|
3269
|
+
var ImageModel = /* @__PURE__ */ ((ImageModel2) => {
|
|
3270
|
+
ImageModel2["STABILITY_IMAGE_MODEL_UNSPECIFIED"] = "STABILITY_IMAGE_MODEL_UNSPECIFIED";
|
|
3271
|
+
ImageModel2["SDXL_1_0"] = "SDXL_1_0";
|
|
3272
|
+
return ImageModel2;
|
|
3273
|
+
})(ImageModel || {});
|
|
3274
|
+
var ClipGuidancePreset = /* @__PURE__ */ ((ClipGuidancePreset2) => {
|
|
3275
|
+
ClipGuidancePreset2["CLIP_GUIDANCE_PRESET_UNSPECIFIED"] = "CLIP_GUIDANCE_PRESET_UNSPECIFIED";
|
|
3276
|
+
ClipGuidancePreset2["FAST_BLUE"] = "FAST_BLUE";
|
|
3277
|
+
ClipGuidancePreset2["FAST_GREEN"] = "FAST_GREEN";
|
|
3278
|
+
ClipGuidancePreset2["NONE"] = "NONE";
|
|
3279
|
+
ClipGuidancePreset2["SIMPLE"] = "SIMPLE";
|
|
3280
|
+
ClipGuidancePreset2["SLOW"] = "SLOW";
|
|
3281
|
+
ClipGuidancePreset2["SLOWER"] = "SLOWER";
|
|
3282
|
+
ClipGuidancePreset2["SLOWEST"] = "SLOWEST";
|
|
3283
|
+
return ClipGuidancePreset2;
|
|
3284
|
+
})(ClipGuidancePreset || {});
|
|
3285
|
+
var Sampler = /* @__PURE__ */ ((Sampler2) => {
|
|
3286
|
+
Sampler2["SAMPLER_UNSPECIFIED"] = "SAMPLER_UNSPECIFIED";
|
|
3287
|
+
Sampler2["DDIM"] = "DDIM";
|
|
3288
|
+
Sampler2["DDPM"] = "DDPM";
|
|
3289
|
+
Sampler2["K_DPMPP_2M"] = "K_DPMPP_2M";
|
|
3290
|
+
Sampler2["K_DPMPP_2S_ANCESTRAL"] = "K_DPMPP_2S_ANCESTRAL";
|
|
3291
|
+
Sampler2["K_DPM_2"] = "K_DPM_2";
|
|
3292
|
+
Sampler2["K_DPM_2_ANCESTRAL"] = "K_DPM_2_ANCESTRAL";
|
|
3293
|
+
Sampler2["K_EULER"] = "K_EULER";
|
|
3294
|
+
Sampler2["K_EULER_ANCESTRAL"] = "K_EULER_ANCESTRAL";
|
|
3295
|
+
Sampler2["K_HEUN"] = "K_HEUN";
|
|
3296
|
+
Sampler2["K_LMS"] = "K_LMS";
|
|
3297
|
+
return Sampler2;
|
|
3298
|
+
})(Sampler || {});
|
|
3299
|
+
var TextToImageRequestStylePreset = /* @__PURE__ */ ((TextToImageRequestStylePreset2) => {
|
|
3300
|
+
TextToImageRequestStylePreset2["STYLE_PRESET_UNSPECIFIED"] = "STYLE_PRESET_UNSPECIFIED";
|
|
3301
|
+
TextToImageRequestStylePreset2["ANALOG_FILM"] = "ANALOG_FILM";
|
|
3302
|
+
TextToImageRequestStylePreset2["ANIME"] = "ANIME";
|
|
3303
|
+
TextToImageRequestStylePreset2["CINEMATIC"] = "CINEMATIC";
|
|
3304
|
+
TextToImageRequestStylePreset2["COMIC_BOOK"] = "COMIC_BOOK";
|
|
3305
|
+
TextToImageRequestStylePreset2["DIGITAL_ART"] = "DIGITAL_ART";
|
|
3306
|
+
TextToImageRequestStylePreset2["ENHANCE"] = "ENHANCE";
|
|
3307
|
+
TextToImageRequestStylePreset2["FANTASY_ART"] = "FANTASY_ART";
|
|
3308
|
+
TextToImageRequestStylePreset2["ISOMETRIC"] = "ISOMETRIC";
|
|
3309
|
+
TextToImageRequestStylePreset2["LINE_ART"] = "LINE_ART";
|
|
3310
|
+
TextToImageRequestStylePreset2["LOW_POLY"] = "LOW_POLY";
|
|
3311
|
+
TextToImageRequestStylePreset2["MODELING_COMPOUND"] = "MODELING_COMPOUND";
|
|
3312
|
+
TextToImageRequestStylePreset2["NEON_PUNK"] = "NEON_PUNK";
|
|
3313
|
+
TextToImageRequestStylePreset2["ORIGAMI"] = "ORIGAMI";
|
|
3314
|
+
TextToImageRequestStylePreset2["PHOTOGRAPHIC"] = "PHOTOGRAPHIC";
|
|
3315
|
+
TextToImageRequestStylePreset2["PIXEL_ART"] = "PIXEL_ART";
|
|
3316
|
+
TextToImageRequestStylePreset2["TILE_TEXTURE"] = "TILE_TEXTURE";
|
|
3317
|
+
TextToImageRequestStylePreset2["MODEL_3D"] = "MODEL_3D";
|
|
3318
|
+
return TextToImageRequestStylePreset2;
|
|
3319
|
+
})(TextToImageRequestStylePreset || {});
|
|
3320
|
+
var ImageCoreModel = /* @__PURE__ */ ((ImageCoreModel2) => {
|
|
3321
|
+
ImageCoreModel2["STABILITY_CORE_IMAGE_MODEL_UNSPECIFIED"] = "STABILITY_CORE_IMAGE_MODEL_UNSPECIFIED";
|
|
3322
|
+
ImageCoreModel2["STABLE_IMAGE_CORE"] = "STABLE_IMAGE_CORE";
|
|
3323
|
+
return ImageCoreModel2;
|
|
3324
|
+
})(ImageCoreModel || {});
|
|
3325
|
+
var GenerateCoreRequestStylePreset = /* @__PURE__ */ ((GenerateCoreRequestStylePreset2) => {
|
|
3326
|
+
GenerateCoreRequestStylePreset2["STYLE_PRESET_UNSPECIFIED"] = "STYLE_PRESET_UNSPECIFIED";
|
|
3327
|
+
GenerateCoreRequestStylePreset2["ANALOG_FILM"] = "ANALOG_FILM";
|
|
3328
|
+
GenerateCoreRequestStylePreset2["ANIME"] = "ANIME";
|
|
3329
|
+
GenerateCoreRequestStylePreset2["CINEMATIC"] = "CINEMATIC";
|
|
3330
|
+
GenerateCoreRequestStylePreset2["COMIC_BOOK"] = "COMIC_BOOK";
|
|
3331
|
+
GenerateCoreRequestStylePreset2["DIGITAL_ART"] = "DIGITAL_ART";
|
|
3332
|
+
GenerateCoreRequestStylePreset2["ENHANCE"] = "ENHANCE";
|
|
3333
|
+
GenerateCoreRequestStylePreset2["FANTASY_ART"] = "FANTASY_ART";
|
|
3334
|
+
GenerateCoreRequestStylePreset2["ISOMETRIC"] = "ISOMETRIC";
|
|
3335
|
+
GenerateCoreRequestStylePreset2["LINE_ART"] = "LINE_ART";
|
|
3336
|
+
GenerateCoreRequestStylePreset2["LOW_POLY"] = "LOW_POLY";
|
|
3337
|
+
GenerateCoreRequestStylePreset2["MODELING_COMPOUND"] = "MODELING_COMPOUND";
|
|
3338
|
+
GenerateCoreRequestStylePreset2["NEON_PUNK"] = "NEON_PUNK";
|
|
3339
|
+
GenerateCoreRequestStylePreset2["ORIGAMI"] = "ORIGAMI";
|
|
3340
|
+
GenerateCoreRequestStylePreset2["PHOTOGRAPHIC"] = "PHOTOGRAPHIC";
|
|
3341
|
+
GenerateCoreRequestStylePreset2["PIXEL_ART"] = "PIXEL_ART";
|
|
3342
|
+
GenerateCoreRequestStylePreset2["TILE_TEXTURE"] = "TILE_TEXTURE";
|
|
3343
|
+
GenerateCoreRequestStylePreset2["MODEL_3D"] = "MODEL_3D";
|
|
3344
|
+
return GenerateCoreRequestStylePreset2;
|
|
3345
|
+
})(GenerateCoreRequestStylePreset || {});
|
|
3346
|
+
var GenerationMode = /* @__PURE__ */ ((GenerationMode2) => {
|
|
3347
|
+
GenerationMode2["UNKNOWN_GENERATION_MODE"] = "UNKNOWN_GENERATION_MODE";
|
|
3348
|
+
GenerationMode2["TEXT_TO_IMAGE"] = "TEXT_TO_IMAGE";
|
|
3349
|
+
GenerationMode2["IMAGE_TO_IMAGE"] = "IMAGE_TO_IMAGE";
|
|
3350
|
+
return GenerationMode2;
|
|
3351
|
+
})(GenerationMode || {});
|
|
3352
|
+
var ImageStableDiffusionModel = /* @__PURE__ */ ((ImageStableDiffusionModel2) => {
|
|
3353
|
+
ImageStableDiffusionModel2["STABLE_DIFFUSION_MODEL_UNSPECIFIED"] = "STABLE_DIFFUSION_MODEL_UNSPECIFIED";
|
|
3354
|
+
ImageStableDiffusionModel2["SD3_LARGE"] = "SD3_LARGE";
|
|
3355
|
+
ImageStableDiffusionModel2["SD3_LARGE_TURBO"] = "SD3_LARGE_TURBO";
|
|
3356
|
+
ImageStableDiffusionModel2["SD3_MEDIUM"] = "SD3_MEDIUM";
|
|
3357
|
+
ImageStableDiffusionModel2["SD3_5_LARGE"] = "SD3_5_LARGE";
|
|
3358
|
+
ImageStableDiffusionModel2["SD3_5_LARGE_TURBO"] = "SD3_5_LARGE_TURBO";
|
|
3359
|
+
ImageStableDiffusionModel2["SD3_5_MEDIUM"] = "SD3_5_MEDIUM";
|
|
3360
|
+
return ImageStableDiffusionModel2;
|
|
3361
|
+
})(ImageStableDiffusionModel || {});
|
|
3362
|
+
var GenerateStableDiffusionRequestOutputFormat = /* @__PURE__ */ ((GenerateStableDiffusionRequestOutputFormat2) => {
|
|
3363
|
+
GenerateStableDiffusionRequestOutputFormat2["OUTPUT_FORMAT_UNSPECIFIED"] = "OUTPUT_FORMAT_UNSPECIFIED";
|
|
3364
|
+
GenerateStableDiffusionRequestOutputFormat2["JPEG"] = "JPEG";
|
|
3365
|
+
GenerateStableDiffusionRequestOutputFormat2["PNG"] = "PNG";
|
|
3366
|
+
return GenerateStableDiffusionRequestOutputFormat2;
|
|
3367
|
+
})(GenerateStableDiffusionRequestOutputFormat || {});
|
|
3368
|
+
var GenerateAnImageModel = /* @__PURE__ */ ((GenerateAnImageModel2) => {
|
|
3369
|
+
GenerateAnImageModel2["GEN_IMAGE_MODEL_UNSPECIFIED"] = "GEN_IMAGE_MODEL_UNSPECIFIED";
|
|
3370
|
+
GenerateAnImageModel2["FLUX_PRO_1_1_ULTRA"] = "FLUX_PRO_1_1_ULTRA";
|
|
3371
|
+
GenerateAnImageModel2["FLUX_1_DEV"] = "FLUX_1_DEV";
|
|
3372
|
+
GenerateAnImageModel2["FLUX_PRO_1_CANNY"] = "FLUX_PRO_1_CANNY";
|
|
3373
|
+
GenerateAnImageModel2["FLUX_PRO_1_DEPTH"] = "FLUX_PRO_1_DEPTH";
|
|
3374
|
+
GenerateAnImageModel2["FLUX_PRO_1_FILL"] = "FLUX_PRO_1_FILL";
|
|
3375
|
+
return GenerateAnImageModel2;
|
|
3376
|
+
})(GenerateAnImageModel || {});
|
|
3377
|
+
var CreatePredictionModel = /* @__PURE__ */ ((CreatePredictionModel2) => {
|
|
3378
|
+
CreatePredictionModel2["UNKNOWN_CREATE_PREDICTION_MODEL"] = "UNKNOWN_CREATE_PREDICTION_MODEL";
|
|
3379
|
+
CreatePredictionModel2["FLUX_PULID"] = "FLUX_PULID";
|
|
3380
|
+
CreatePredictionModel2["FLUX_DEV_CONTROLNET"] = "FLUX_DEV_CONTROLNET";
|
|
3381
|
+
return CreatePredictionModel2;
|
|
3382
|
+
})(CreatePredictionModel || {});
|
|
3383
|
+
var EditImageWithPromptRequestModel = /* @__PURE__ */ ((EditImageWithPromptRequestModel2) => {
|
|
3384
|
+
EditImageWithPromptRequestModel2["UNKNOWN_EDIT_IMAGE_WITH__PROMPT_REQUEST_MODEL"] = "UNKNOWN_EDIT_IMAGE_WITH__PROMPT_REQUEST_MODEL";
|
|
3385
|
+
EditImageWithPromptRequestModel2["INPAINT"] = "INPAINT";
|
|
3386
|
+
EditImageWithPromptRequestModel2["OUTPAINT"] = "OUTPAINT";
|
|
3387
|
+
return EditImageWithPromptRequestModel2;
|
|
3388
|
+
})(EditImageWithPromptRequestModel || {});
|
|
3389
|
+
var StylePreset = /* @__PURE__ */ ((StylePreset2) => {
|
|
3390
|
+
StylePreset2["STYLE_PRESET_UNSPECIFIED"] = "STYLE_PRESET_UNSPECIFIED";
|
|
3391
|
+
StylePreset2["ANALOG_FILM"] = "ANALOG_FILM";
|
|
3392
|
+
StylePreset2["ANIME"] = "ANIME";
|
|
3393
|
+
StylePreset2["CINEMATIC"] = "CINEMATIC";
|
|
3394
|
+
StylePreset2["COMIC_BOOK"] = "COMIC_BOOK";
|
|
3395
|
+
StylePreset2["DIGITAL_ART"] = "DIGITAL_ART";
|
|
3396
|
+
StylePreset2["ENHANCE"] = "ENHANCE";
|
|
3397
|
+
StylePreset2["FANTASY_ART"] = "FANTASY_ART";
|
|
3398
|
+
StylePreset2["ISOMETRIC"] = "ISOMETRIC";
|
|
3399
|
+
StylePreset2["LINE_ART"] = "LINE_ART";
|
|
3400
|
+
StylePreset2["LOW_POLY"] = "LOW_POLY";
|
|
3401
|
+
StylePreset2["MODELING_COMPOUND"] = "MODELING_COMPOUND";
|
|
3402
|
+
StylePreset2["NEON_PUNK"] = "NEON_PUNK";
|
|
3403
|
+
StylePreset2["ORIGAMI"] = "ORIGAMI";
|
|
3404
|
+
StylePreset2["PHOTOGRAPHIC"] = "PHOTOGRAPHIC";
|
|
3405
|
+
StylePreset2["PIXEL_ART"] = "PIXEL_ART";
|
|
3406
|
+
StylePreset2["TILE_TEXTURE"] = "TILE_TEXTURE";
|
|
3407
|
+
StylePreset2["MODEL_3D"] = "MODEL_3D";
|
|
3408
|
+
return StylePreset2;
|
|
3409
|
+
})(StylePreset || {});
|
|
3410
|
+
var TextToImageRequestModel = /* @__PURE__ */ ((TextToImageRequestModel2) => {
|
|
3411
|
+
TextToImageRequestModel2["UNKNOWN_MODEL"] = "UNKNOWN_MODEL";
|
|
3412
|
+
TextToImageRequestModel2["FLUX_1_DEV"] = "FLUX_1_DEV";
|
|
3413
|
+
TextToImageRequestModel2["FLUX_1_SCHNELL"] = "FLUX_1_SCHNELL";
|
|
3414
|
+
TextToImageRequestModel2["FLUX_1_KONTEXT_MAX"] = "FLUX_1_KONTEXT_MAX";
|
|
3415
|
+
TextToImageRequestModel2["FLUX_1_KONTEXT_PRO"] = "FLUX_1_KONTEXT_PRO";
|
|
3416
|
+
TextToImageRequestModel2["QWEN_IMAGE_EDIT"] = "QWEN_IMAGE_EDIT";
|
|
3417
|
+
return TextToImageRequestModel2;
|
|
3418
|
+
})(TextToImageRequestModel || {});
|
|
3419
|
+
var PerplexityModel = /* @__PURE__ */ ((PerplexityModel2) => {
|
|
3420
|
+
PerplexityModel2["UNKNOWN_PERPLEXITY_MODEL"] = "UNKNOWN_PERPLEXITY_MODEL";
|
|
3421
|
+
PerplexityModel2["SONAR"] = "SONAR";
|
|
3422
|
+
PerplexityModel2["SONAR_PRO"] = "SONAR_PRO";
|
|
3423
|
+
PerplexityModel2["SONAR_REASONING"] = "SONAR_REASONING";
|
|
3424
|
+
PerplexityModel2["SONAR_REASONING_PRO"] = "SONAR_REASONING_PRO";
|
|
3425
|
+
PerplexityModel2["SONAR_DEEP_RESEARCH"] = "SONAR_DEEP_RESEARCH";
|
|
3426
|
+
return PerplexityModel2;
|
|
3427
|
+
})(PerplexityModel || {});
|
|
3428
|
+
var PerplexityMessageMessageRole = /* @__PURE__ */ ((PerplexityMessageMessageRole2) => {
|
|
3429
|
+
PerplexityMessageMessageRole2["UNKNOWN"] = "UNKNOWN";
|
|
3430
|
+
PerplexityMessageMessageRole2["SYSTEM"] = "SYSTEM";
|
|
3431
|
+
PerplexityMessageMessageRole2["USER"] = "USER";
|
|
3432
|
+
PerplexityMessageMessageRole2["ASSISTANT"] = "ASSISTANT";
|
|
3433
|
+
return PerplexityMessageMessageRole2;
|
|
3434
|
+
})(PerplexityMessageMessageRole || {});
|
|
3435
|
+
var ImagenModel = /* @__PURE__ */ ((ImagenModel2) => {
|
|
3436
|
+
ImagenModel2["UNKNOWN_IMAGEN_MODEL"] = "UNKNOWN_IMAGEN_MODEL";
|
|
3437
|
+
ImagenModel2["IMAGEN_3_0_GENERATE_002"] = "IMAGEN_3_0_GENERATE_002";
|
|
3438
|
+
ImagenModel2["IMAGEN_3_0_FAST_GENERATE_001"] = "IMAGEN_3_0_FAST_GENERATE_001";
|
|
3439
|
+
ImagenModel2["IMAGEN_4_0_GENERATE_001"] = "IMAGEN_4_0_GENERATE_001";
|
|
3440
|
+
ImagenModel2["IMAGEN_4_0_FAST_GENERATE_001"] = "IMAGEN_4_0_FAST_GENERATE_001";
|
|
3441
|
+
ImagenModel2["IMAGEN_4_0_ULTRA_GENERATE_001"] = "IMAGEN_4_0_ULTRA_GENERATE_001";
|
|
3442
|
+
return ImagenModel2;
|
|
3443
|
+
})(ImagenModel || {});
|
|
3444
|
+
var GenerateImageMlPlatformModel = /* @__PURE__ */ ((GenerateImageMlPlatformModel2) => {
|
|
3445
|
+
GenerateImageMlPlatformModel2["UNKNOWN_CREATE_PREDICTION_MODEL"] = "UNKNOWN_CREATE_PREDICTION_MODEL";
|
|
3446
|
+
GenerateImageMlPlatformModel2["FLUX_PULID"] = "FLUX_PULID";
|
|
3447
|
+
return GenerateImageMlPlatformModel2;
|
|
3448
|
+
})(GenerateImageMlPlatformModel || {});
|
|
3449
|
+
var OpenAiImageModel = /* @__PURE__ */ ((OpenAiImageModel2) => {
|
|
3450
|
+
OpenAiImageModel2["UNKNOWN_IMAGE_CREATION_MODEL"] = "UNKNOWN_IMAGE_CREATION_MODEL";
|
|
3451
|
+
OpenAiImageModel2["GPT_4O_IMAGE"] = "GPT_4O_IMAGE";
|
|
3452
|
+
OpenAiImageModel2["GPT_IMAGE_1"] = "GPT_IMAGE_1";
|
|
3453
|
+
return OpenAiImageModel2;
|
|
3454
|
+
})(OpenAiImageModel || {});
|
|
3455
|
+
var VideoGenModel = /* @__PURE__ */ ((VideoGenModel2) => {
|
|
3456
|
+
VideoGenModel2["UNKNOWN_VIDEO_GEN_MODEL"] = "UNKNOWN_VIDEO_GEN_MODEL";
|
|
3457
|
+
VideoGenModel2["VEO_2_0_GENERATE_001"] = "VEO_2_0_GENERATE_001";
|
|
3458
|
+
VideoGenModel2["VEO_3_0_GENERATE_001"] = "VEO_3_0_GENERATE_001";
|
|
3459
|
+
VideoGenModel2["VEO_3_0_FAST_GENERATE_001"] = "VEO_3_0_FAST_GENERATE_001";
|
|
3460
|
+
return VideoGenModel2;
|
|
3461
|
+
})(VideoGenModel || {});
|
|
3462
|
+
var ChatCompletionModel = /* @__PURE__ */ ((ChatCompletionModel2) => {
|
|
3463
|
+
ChatCompletionModel2["UNKNOWN_CHAT_COMPLETION_MODEL"] = "UNKNOWN_CHAT_COMPLETION_MODEL";
|
|
3464
|
+
ChatCompletionModel2["LLAMA_4_SCOUT_17B_16E_INSTRUCT_MAAS"] = "LLAMA_4_SCOUT_17B_16E_INSTRUCT_MAAS";
|
|
3465
|
+
ChatCompletionModel2["LLAMA_4_MAVERICK_17B_128E_INSTRUCT_MAAS"] = "LLAMA_4_MAVERICK_17B_128E_INSTRUCT_MAAS";
|
|
3466
|
+
return ChatCompletionModel2;
|
|
3467
|
+
})(ChatCompletionModel || {});
|
|
3468
|
+
var V1ChatCompletionMessageMessageRole = /* @__PURE__ */ ((V1ChatCompletionMessageMessageRole2) => {
|
|
3469
|
+
V1ChatCompletionMessageMessageRole2["UNKNOWN"] = "UNKNOWN";
|
|
3470
|
+
V1ChatCompletionMessageMessageRole2["USER"] = "USER";
|
|
3471
|
+
V1ChatCompletionMessageMessageRole2["ASSISTANT"] = "ASSISTANT";
|
|
3472
|
+
V1ChatCompletionMessageMessageRole2["SYSTEM"] = "SYSTEM";
|
|
3473
|
+
return V1ChatCompletionMessageMessageRole2;
|
|
3474
|
+
})(V1ChatCompletionMessageMessageRole || {});
|
|
3475
|
+
var MessageRole = /* @__PURE__ */ ((MessageRole2) => {
|
|
3476
|
+
MessageRole2["UNKNOWN"] = "UNKNOWN";
|
|
3477
|
+
MessageRole2["USER"] = "USER";
|
|
3478
|
+
MessageRole2["ASSISTANT"] = "ASSISTANT";
|
|
3479
|
+
MessageRole2["SYSTEM"] = "SYSTEM";
|
|
3480
|
+
return MessageRole2;
|
|
3481
|
+
})(MessageRole || {});
|
|
3482
|
+
var OutputFormat = /* @__PURE__ */ ((OutputFormat2) => {
|
|
3483
|
+
OutputFormat2["UNKNOWN_OUTPUT_FORMAT"] = "UNKNOWN_OUTPUT_FORMAT";
|
|
3484
|
+
OutputFormat2["MP4"] = "MP4";
|
|
3485
|
+
OutputFormat2["WEBM"] = "WEBM";
|
|
3486
|
+
return OutputFormat2;
|
|
3487
|
+
})(OutputFormat || {});
|
|
3488
|
+
var VideoModel = /* @__PURE__ */ ((VideoModel2) => {
|
|
3489
|
+
VideoModel2["UNKNOWN_VIDEO_MODEL"] = "UNKNOWN_VIDEO_MODEL";
|
|
3490
|
+
VideoModel2["SEEDANCE_1_0_PRO"] = "SEEDANCE_1_0_PRO";
|
|
3491
|
+
VideoModel2["SEEDANCE_1_0_LITE"] = "SEEDANCE_1_0_LITE";
|
|
3492
|
+
return VideoModel2;
|
|
3493
|
+
})(VideoModel || {});
|
|
3494
|
+
var V1ResponsesModel = /* @__PURE__ */ ((V1ResponsesModel2) => {
|
|
3495
|
+
V1ResponsesModel2["MODEL_UNSPECIFIED"] = "MODEL_UNSPECIFIED";
|
|
3496
|
+
V1ResponsesModel2["GPT_5_2025_08_07_RESPONSES"] = "GPT_5_2025_08_07_RESPONSES";
|
|
3497
|
+
V1ResponsesModel2["GPT_5_MINI_2025_08_07_RESPONSES"] = "GPT_5_MINI_2025_08_07_RESPONSES";
|
|
3498
|
+
V1ResponsesModel2["GPT_5_NANO_2025_08_07_RESPONSES"] = "GPT_5_NANO_2025_08_07_RESPONSES";
|
|
3499
|
+
V1ResponsesModel2["O3_PRO_2025_06_10"] = "O3_PRO_2025_06_10";
|
|
3500
|
+
V1ResponsesModel2["O3_DEEP_RESEARCH_2025_06_26"] = "O3_DEEP_RESEARCH_2025_06_26";
|
|
3501
|
+
return V1ResponsesModel2;
|
|
3502
|
+
})(V1ResponsesModel || {});
|
|
3503
|
+
var ResponsesInputMessageResponsesMessageRole = /* @__PURE__ */ ((ResponsesInputMessageResponsesMessageRole2) => {
|
|
3504
|
+
ResponsesInputMessageResponsesMessageRole2["UNKNOWN_RESPONSE"] = "UNKNOWN_RESPONSE";
|
|
3505
|
+
ResponsesInputMessageResponsesMessageRole2["USER"] = "USER";
|
|
3506
|
+
ResponsesInputMessageResponsesMessageRole2["SYSTEM"] = "SYSTEM";
|
|
3507
|
+
ResponsesInputMessageResponsesMessageRole2["DEVELOPER"] = "DEVELOPER";
|
|
3508
|
+
return ResponsesInputMessageResponsesMessageRole2;
|
|
3509
|
+
})(ResponsesInputMessageResponsesMessageRole || {});
|
|
3510
|
+
var ResponsesModel = /* @__PURE__ */ ((ResponsesModel2) => {
|
|
3511
|
+
ResponsesModel2["MODEL_UNSPECIFIED"] = "MODEL_UNSPECIFIED";
|
|
3512
|
+
ResponsesModel2["GPT_5_2025_08_07_RESPONSES"] = "GPT_5_2025_08_07_RESPONSES";
|
|
3513
|
+
ResponsesModel2["GPT_5_MINI_2025_08_07_RESPONSES"] = "GPT_5_MINI_2025_08_07_RESPONSES";
|
|
3514
|
+
ResponsesModel2["GPT_5_NANO_2025_08_07_RESPONSES"] = "GPT_5_NANO_2025_08_07_RESPONSES";
|
|
3515
|
+
return ResponsesModel2;
|
|
3516
|
+
})(ResponsesModel || {});
|
|
3517
|
+
var ResponsesMessageRole = /* @__PURE__ */ ((ResponsesMessageRole2) => {
|
|
3518
|
+
ResponsesMessageRole2["UNKNOWN_RESPONSE"] = "UNKNOWN_RESPONSE";
|
|
3519
|
+
ResponsesMessageRole2["USER"] = "USER";
|
|
3520
|
+
ResponsesMessageRole2["SYSTEM"] = "SYSTEM";
|
|
3521
|
+
ResponsesMessageRole2["DEVELOPER"] = "DEVELOPER";
|
|
3522
|
+
return ResponsesMessageRole2;
|
|
3523
|
+
})(ResponsesMessageRole || {});
|
|
3524
|
+
var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
3525
|
+
FinishReason2["UNKNOWN_FINISH_REASON"] = "UNKNOWN_FINISH_REASON";
|
|
3526
|
+
FinishReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
3527
|
+
FinishReason2["STOP"] = "STOP";
|
|
3528
|
+
FinishReason2["MAX_TOKENS"] = "MAX_TOKENS";
|
|
3529
|
+
FinishReason2["SAFETY"] = "SAFETY";
|
|
3530
|
+
FinishReason2["RECITATION"] = "RECITATION";
|
|
3531
|
+
FinishReason2["OTHER"] = "OTHER";
|
|
3532
|
+
return FinishReason2;
|
|
3533
|
+
})(FinishReason || {});
|
|
3534
|
+
var HarmProbability = /* @__PURE__ */ ((HarmProbability2) => {
|
|
3535
|
+
HarmProbability2["UNKNOWN_PROBABILITY"] = "UNKNOWN_PROBABILITY";
|
|
3536
|
+
HarmProbability2["NEGLIGIBLE"] = "NEGLIGIBLE";
|
|
3537
|
+
HarmProbability2["LOW"] = "LOW";
|
|
3538
|
+
HarmProbability2["MEDIUM"] = "MEDIUM";
|
|
3539
|
+
HarmProbability2["HIGH"] = "HIGH";
|
|
3540
|
+
return HarmProbability2;
|
|
3541
|
+
})(HarmProbability || {});
|
|
3542
|
+
var ResponseTypeType = /* @__PURE__ */ ((ResponseTypeType2) => {
|
|
3543
|
+
ResponseTypeType2["UNKNOWN"] = "UNKNOWN";
|
|
3544
|
+
ResponseTypeType2["MESSAGE"] = "MESSAGE";
|
|
3545
|
+
return ResponseTypeType2;
|
|
3546
|
+
})(ResponseTypeType || {});
|
|
3547
|
+
var GoogleproxyV1ResponseTypeType = /* @__PURE__ */ ((GoogleproxyV1ResponseTypeType2) => {
|
|
3548
|
+
GoogleproxyV1ResponseTypeType2["UNKNOWN"] = "UNKNOWN";
|
|
3549
|
+
GoogleproxyV1ResponseTypeType2["MESSAGE"] = "MESSAGE";
|
|
3550
|
+
return GoogleproxyV1ResponseTypeType2;
|
|
3551
|
+
})(GoogleproxyV1ResponseTypeType || {});
|
|
3552
|
+
var V1ResponseTypeType = /* @__PURE__ */ ((V1ResponseTypeType2) => {
|
|
3553
|
+
V1ResponseTypeType2["UNKNOWN"] = "UNKNOWN";
|
|
3554
|
+
V1ResponseTypeType2["MESSAGE"] = "MESSAGE";
|
|
3555
|
+
return V1ResponseTypeType2;
|
|
3556
|
+
})(V1ResponseTypeType || {});
|
|
3557
|
+
var GatewayMessageDefinitionRole = /* @__PURE__ */ ((GatewayMessageDefinitionRole2) => {
|
|
3558
|
+
GatewayMessageDefinitionRole2["UNKNOWN"] = "UNKNOWN";
|
|
3559
|
+
GatewayMessageDefinitionRole2["USER"] = "USER";
|
|
3560
|
+
GatewayMessageDefinitionRole2["ASSISTANT"] = "ASSISTANT";
|
|
3561
|
+
GatewayMessageDefinitionRole2["SYSTEM"] = "SYSTEM";
|
|
3562
|
+
GatewayMessageDefinitionRole2["TOOL"] = "TOOL";
|
|
3563
|
+
GatewayMessageDefinitionRole2["DEVELOPER"] = "DEVELOPER";
|
|
3564
|
+
return GatewayMessageDefinitionRole2;
|
|
3565
|
+
})(GatewayMessageDefinitionRole || {});
|
|
3566
|
+
var OpenaiproxyV1EmbeddingModel = /* @__PURE__ */ ((OpenaiproxyV1EmbeddingModel2) => {
|
|
3567
|
+
OpenaiproxyV1EmbeddingModel2["UNKNOWN_EMBEDDING_MODEL"] = "UNKNOWN_EMBEDDING_MODEL";
|
|
3568
|
+
OpenaiproxyV1EmbeddingModel2["TEXT_EMBEDDING_ADA_002"] = "TEXT_EMBEDDING_ADA_002";
|
|
3569
|
+
OpenaiproxyV1EmbeddingModel2["TEXT_EMBEDDING_3_SMALL"] = "TEXT_EMBEDDING_3_SMALL";
|
|
3570
|
+
OpenaiproxyV1EmbeddingModel2["TEXT_EMBEDDING_3_LARGE"] = "TEXT_EMBEDDING_3_LARGE";
|
|
3571
|
+
return OpenaiproxyV1EmbeddingModel2;
|
|
3572
|
+
})(OpenaiproxyV1EmbeddingModel || {});
|
|
3573
|
+
var V1EmbeddingEncodingFormat = /* @__PURE__ */ ((V1EmbeddingEncodingFormat2) => {
|
|
3574
|
+
V1EmbeddingEncodingFormat2["UNKNOWN_ENCODING_FORMAT"] = "UNKNOWN_ENCODING_FORMAT";
|
|
3575
|
+
V1EmbeddingEncodingFormat2["FLOAT"] = "FLOAT";
|
|
3576
|
+
V1EmbeddingEncodingFormat2["BASE64"] = "BASE64";
|
|
3577
|
+
return V1EmbeddingEncodingFormat2;
|
|
3578
|
+
})(V1EmbeddingEncodingFormat || {});
|
|
3579
|
+
var EmbeddingModel = /* @__PURE__ */ ((EmbeddingModel2) => {
|
|
3580
|
+
EmbeddingModel2["UNKNOWN_EMBEDDING_MODEL"] = "UNKNOWN_EMBEDDING_MODEL";
|
|
3581
|
+
EmbeddingModel2["ADA"] = "ADA";
|
|
3582
|
+
EmbeddingModel2["TEXT_EMBEDDING_3_SMALL"] = "TEXT_EMBEDDING_3_SMALL";
|
|
3583
|
+
EmbeddingModel2["TEXT_EMBEDDING_3_LARGE"] = "TEXT_EMBEDDING_3_LARGE";
|
|
3584
|
+
return EmbeddingModel2;
|
|
3585
|
+
})(EmbeddingModel || {});
|
|
3586
|
+
var EmbeddingEncodingFormat = /* @__PURE__ */ ((EmbeddingEncodingFormat2) => {
|
|
3587
|
+
EmbeddingEncodingFormat2["UNKNOWN_ENCODING_FORMAT"] = "UNKNOWN_ENCODING_FORMAT";
|
|
3588
|
+
EmbeddingEncodingFormat2["FLOAT"] = "FLOAT";
|
|
3589
|
+
EmbeddingEncodingFormat2["BASE64"] = "BASE64";
|
|
3590
|
+
return EmbeddingEncodingFormat2;
|
|
3591
|
+
})(EmbeddingEncodingFormat || {});
|
|
3592
|
+
var V1EmbeddingModel = /* @__PURE__ */ ((V1EmbeddingModel2) => {
|
|
3593
|
+
V1EmbeddingModel2["UNKNOWN_EMBEDDING_MODEL"] = "UNKNOWN_EMBEDDING_MODEL";
|
|
3594
|
+
V1EmbeddingModel2["TEXT_MULTILINGUAL_EMBEDDING_002"] = "TEXT_MULTILINGUAL_EMBEDDING_002";
|
|
3595
|
+
V1EmbeddingModel2["TEXT_EMBEDDING_005"] = "TEXT_EMBEDDING_005";
|
|
3596
|
+
V1EmbeddingModel2["TEXT_EMBEDDING_LARGE"] = "TEXT_EMBEDDING_LARGE";
|
|
3597
|
+
V1EmbeddingModel2["GEMINI_EMBEDDING_001"] = "GEMINI_EMBEDDING_001";
|
|
3598
|
+
return V1EmbeddingModel2;
|
|
3599
|
+
})(V1EmbeddingModel || {});
|
|
3600
|
+
var TaskType = /* @__PURE__ */ ((TaskType2) => {
|
|
3601
|
+
TaskType2["UNKNOWN_TASK_TYPE"] = "UNKNOWN_TASK_TYPE";
|
|
3602
|
+
TaskType2["RETRIEVAL_QUERY"] = "RETRIEVAL_QUERY";
|
|
3603
|
+
TaskType2["RETRIEVAL_DOCUMENT"] = "RETRIEVAL_DOCUMENT";
|
|
3604
|
+
TaskType2["SEMANTIC_SIMILARITY"] = "SEMANTIC_SIMILARITY";
|
|
3605
|
+
TaskType2["CLASSIFICATION"] = "CLASSIFICATION";
|
|
3606
|
+
TaskType2["CLUSTERING"] = "CLUSTERING";
|
|
3607
|
+
TaskType2["QUESTION_ANSWERING"] = "QUESTION_ANSWERING";
|
|
3608
|
+
TaskType2["FACT_VERIFICATION"] = "FACT_VERIFICATION";
|
|
3609
|
+
TaskType2["CODE_RETRIEVAL_QUERY"] = "CODE_RETRIEVAL_QUERY";
|
|
3610
|
+
return TaskType2;
|
|
3611
|
+
})(TaskType || {});
|
|
3612
|
+
var TranscriptionModel = /* @__PURE__ */ ((TranscriptionModel2) => {
|
|
3613
|
+
TranscriptionModel2["UNKNOWN_TRANSCRIPTION_MODEL"] = "UNKNOWN_TRANSCRIPTION_MODEL";
|
|
3614
|
+
TranscriptionModel2["WHISPER_1"] = "WHISPER_1";
|
|
3615
|
+
return TranscriptionModel2;
|
|
3616
|
+
})(TranscriptionModel || {});
|
|
3617
|
+
var CreateTranscriptionRequestResponseFormat = /* @__PURE__ */ ((CreateTranscriptionRequestResponseFormat2) => {
|
|
3618
|
+
CreateTranscriptionRequestResponseFormat2["UNKNOWN_RESPONSE_FORMAT"] = "UNKNOWN_RESPONSE_FORMAT";
|
|
3619
|
+
CreateTranscriptionRequestResponseFormat2["JSON"] = "JSON";
|
|
3620
|
+
CreateTranscriptionRequestResponseFormat2["TEXT"] = "TEXT";
|
|
3621
|
+
CreateTranscriptionRequestResponseFormat2["SRT"] = "SRT";
|
|
3622
|
+
CreateTranscriptionRequestResponseFormat2["VERBOSE_JSON"] = "VERBOSE_JSON";
|
|
3623
|
+
CreateTranscriptionRequestResponseFormat2["VTT"] = "VTT";
|
|
3624
|
+
return CreateTranscriptionRequestResponseFormat2;
|
|
3625
|
+
})(CreateTranscriptionRequestResponseFormat || {});
|
|
3626
|
+
var TimestampGranularity = /* @__PURE__ */ ((TimestampGranularity2) => {
|
|
3627
|
+
TimestampGranularity2["UNKNOWN_TIMESTAMP_GRANULARITY"] = "UNKNOWN_TIMESTAMP_GRANULARITY";
|
|
3628
|
+
TimestampGranularity2["WORD"] = "WORD";
|
|
3629
|
+
TimestampGranularity2["SEGMENT"] = "SEGMENT";
|
|
3630
|
+
return TimestampGranularity2;
|
|
3631
|
+
})(TimestampGranularity || {});
|
|
3632
|
+
var SpeechModel = /* @__PURE__ */ ((SpeechModel2) => {
|
|
3633
|
+
SpeechModel2["UNKNOWN_SPEECH_MODEL"] = "UNKNOWN_SPEECH_MODEL";
|
|
3634
|
+
SpeechModel2["TTS_1"] = "TTS_1";
|
|
3635
|
+
SpeechModel2["TTS_1_HD"] = "TTS_1_HD";
|
|
3636
|
+
return SpeechModel2;
|
|
3637
|
+
})(SpeechModel || {});
|
|
3638
|
+
var ElevenLabsTextToSpeechModel = /* @__PURE__ */ ((ElevenLabsTextToSpeechModel2) => {
|
|
3639
|
+
ElevenLabsTextToSpeechModel2["UNKNOWN_ELEVEN_LABS_TEXT_TO_SPEECH_MODEL"] = "UNKNOWN_ELEVEN_LABS_TEXT_TO_SPEECH_MODEL";
|
|
3640
|
+
ElevenLabsTextToSpeechModel2["ELEVEN_MULTILINGUAL_V2"] = "ELEVEN_MULTILINGUAL_V2";
|
|
3641
|
+
ElevenLabsTextToSpeechModel2["ELEVEN_FLASH_V2_5"] = "ELEVEN_FLASH_V2_5";
|
|
3642
|
+
ElevenLabsTextToSpeechModel2["ELEVEN_FLASH_V2"] = "ELEVEN_FLASH_V2";
|
|
3643
|
+
return ElevenLabsTextToSpeechModel2;
|
|
3644
|
+
})(ElevenLabsTextToSpeechModel || {});
|
|
3645
|
+
var EntityType = /* @__PURE__ */ ((EntityType2) => {
|
|
3646
|
+
EntityType2["UNKNOWN_ENTITY_TYPE"] = "UNKNOWN_ENTITY_TYPE";
|
|
3647
|
+
EntityType2["VENDOR"] = "VENDOR";
|
|
3648
|
+
EntityType2["PROJECT"] = "PROJECT";
|
|
3649
|
+
EntityType2["PROMPT"] = "PROMPT";
|
|
3650
|
+
return EntityType2;
|
|
3651
|
+
})(EntityType || {});
|
|
3652
|
+
var OutageStatus = /* @__PURE__ */ ((OutageStatus2) => {
|
|
3653
|
+
OutageStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
3654
|
+
OutageStatus2["HEALTHY"] = "HEALTHY";
|
|
3655
|
+
OutageStatus2["OUTAGE"] = "OUTAGE";
|
|
3656
|
+
return OutageStatus2;
|
|
3657
|
+
})(OutageStatus || {});
|
|
3658
|
+
var ImageEditingModel = /* @__PURE__ */ ((ImageEditingModel2) => {
|
|
3659
|
+
ImageEditingModel2["IMAGE_EDITING_MODEL_UNSPECIFIED"] = "IMAGE_EDITING_MODEL_UNSPECIFIED";
|
|
3660
|
+
ImageEditingModel2["PR_AI_BACKGROUND_MODEL_VERSION_3"] = "PR_AI_BACKGROUND_MODEL_VERSION_3";
|
|
3661
|
+
ImageEditingModel2["PR_AI_BACKGROUND_MODEL_VERSION_4"] = "PR_AI_BACKGROUND_MODEL_VERSION_4";
|
|
3662
|
+
return ImageEditingModel2;
|
|
3663
|
+
})(ImageEditingModel || {});
|
|
3664
|
+
var V1EditImageModel = /* @__PURE__ */ ((V1EditImageModel2) => {
|
|
3665
|
+
V1EditImageModel2["UNKNOWN_EDIT_IMAGE_REQUEST_MODEL"] = "UNKNOWN_EDIT_IMAGE_REQUEST_MODEL";
|
|
3666
|
+
V1EditImageModel2["ERASE"] = "ERASE";
|
|
3667
|
+
return V1EditImageModel2;
|
|
3668
|
+
})(V1EditImageModel || {});
|
|
3669
|
+
var EditImageModel = /* @__PURE__ */ ((EditImageModel2) => {
|
|
3670
|
+
EditImageModel2["UNKNOWN_EDIT_IMAGE_MODEL"] = "UNKNOWN_EDIT_IMAGE_MODEL";
|
|
3671
|
+
EditImageModel2["REAL_ESRGAN"] = "REAL_ESRGAN";
|
|
3672
|
+
return EditImageModel2;
|
|
3673
|
+
})(EditImageModel || {});
|
|
3674
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3675
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3676
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
3677
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
3678
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
3679
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
3680
|
+
return WebhookIdentityType2;
|
|
3681
|
+
})(WebhookIdentityType || {});
|
|
3682
|
+
async function generateTextByPrompt2(promptId, options) {
|
|
3683
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3684
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3685
|
+
promptId,
|
|
3686
|
+
params: options?.params,
|
|
3687
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3688
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3689
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3690
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3691
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3692
|
+
});
|
|
3693
|
+
const reqOpts = generateTextByPrompt(payload);
|
|
3694
|
+
sideEffects?.onSiteCall?.();
|
|
3695
|
+
try {
|
|
3696
|
+
const result = await httpClient.request(reqOpts);
|
|
3697
|
+
sideEffects?.onSuccess?.(result);
|
|
3698
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3699
|
+
} catch (err) {
|
|
3700
|
+
const transformedError = sdkTransformError(
|
|
3701
|
+
err,
|
|
3702
|
+
{
|
|
3703
|
+
spreadPathsToArguments: {},
|
|
3704
|
+
explicitPathsToArguments: {
|
|
3705
|
+
promptId: "$[0]",
|
|
3706
|
+
params: "$[1].params",
|
|
3707
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
3708
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
3709
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
3710
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
3711
|
+
asyncResultTopic: "$[1].asyncResultTopic"
|
|
3712
|
+
},
|
|
3713
|
+
singleArgumentUnchanged: false
|
|
3714
|
+
},
|
|
3715
|
+
["promptId", "options"]
|
|
3716
|
+
);
|
|
3717
|
+
sideEffects?.onError?.(err);
|
|
3718
|
+
throw transformedError;
|
|
3719
|
+
}
|
|
3720
|
+
}
|
|
3721
|
+
async function generateTextByPromptStreamed2(promptId, options) {
|
|
3722
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3723
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3724
|
+
promptId,
|
|
3725
|
+
params: options?.params,
|
|
3726
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3727
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3728
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3729
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3730
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3731
|
+
});
|
|
3732
|
+
const reqOpts = generateTextByPromptStreamed(payload);
|
|
3733
|
+
sideEffects?.onSiteCall?.();
|
|
3734
|
+
try {
|
|
3735
|
+
const result = await httpClient.request(reqOpts);
|
|
3736
|
+
sideEffects?.onSuccess?.(result);
|
|
3737
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3738
|
+
} catch (err) {
|
|
3739
|
+
const transformedError = sdkTransformError(
|
|
3740
|
+
err,
|
|
3741
|
+
{
|
|
3742
|
+
spreadPathsToArguments: {},
|
|
3743
|
+
explicitPathsToArguments: {
|
|
3744
|
+
promptId: "$[0]",
|
|
3745
|
+
params: "$[1].params",
|
|
3746
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
3747
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
3748
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
3749
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
3750
|
+
asyncResultTopic: "$[1].asyncResultTopic"
|
|
3751
|
+
},
|
|
3752
|
+
singleArgumentUnchanged: false
|
|
3753
|
+
},
|
|
3754
|
+
["promptId", "options"]
|
|
3755
|
+
);
|
|
3756
|
+
sideEffects?.onError?.(err);
|
|
3757
|
+
throw transformedError;
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
async function generateTextByPromptObject2(options) {
|
|
3761
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3762
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3763
|
+
prompt: options?.prompt,
|
|
3764
|
+
params: options?.params,
|
|
3765
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3766
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3767
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3768
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3769
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3770
|
+
});
|
|
3771
|
+
const reqOpts = generateTextByPromptObject(payload);
|
|
3772
|
+
sideEffects?.onSiteCall?.();
|
|
3773
|
+
try {
|
|
3774
|
+
const result = await httpClient.request(reqOpts);
|
|
3775
|
+
sideEffects?.onSuccess?.(result);
|
|
3776
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3777
|
+
} catch (err) {
|
|
3778
|
+
const transformedError = sdkTransformError(
|
|
3779
|
+
err,
|
|
3780
|
+
{
|
|
3781
|
+
spreadPathsToArguments: {},
|
|
3782
|
+
explicitPathsToArguments: {
|
|
3783
|
+
prompt: "$[0].prompt",
|
|
3784
|
+
params: "$[0].params",
|
|
3785
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
3786
|
+
fallbackProperties: "$[0].fallbackProperties",
|
|
3787
|
+
dynamicProperties: "$[0].dynamicProperties",
|
|
3788
|
+
dynamicRequestConfig: "$[0].dynamicRequestConfig",
|
|
3789
|
+
asyncResultTopic: "$[0].asyncResultTopic"
|
|
3790
|
+
},
|
|
3791
|
+
singleArgumentUnchanged: false
|
|
3792
|
+
},
|
|
3793
|
+
["options"]
|
|
3794
|
+
);
|
|
3795
|
+
sideEffects?.onError?.(err);
|
|
3796
|
+
throw transformedError;
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
async function generateTextByPromptObjectStreamed2(options) {
|
|
3800
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3801
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3802
|
+
prompt: options?.prompt,
|
|
3803
|
+
params: options?.params,
|
|
3804
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3805
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3806
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3807
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3808
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3809
|
+
});
|
|
3810
|
+
const reqOpts = generateTextByPromptObjectStreamed(
|
|
3811
|
+
payload
|
|
3812
|
+
);
|
|
3813
|
+
sideEffects?.onSiteCall?.();
|
|
3814
|
+
try {
|
|
3815
|
+
const result = await httpClient.request(reqOpts);
|
|
3816
|
+
sideEffects?.onSuccess?.(result);
|
|
3817
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3818
|
+
} catch (err) {
|
|
3819
|
+
const transformedError = sdkTransformError(
|
|
3820
|
+
err,
|
|
3821
|
+
{
|
|
3822
|
+
spreadPathsToArguments: {},
|
|
3823
|
+
explicitPathsToArguments: {
|
|
3824
|
+
prompt: "$[0].prompt",
|
|
3825
|
+
params: "$[0].params",
|
|
3826
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
3827
|
+
fallbackProperties: "$[0].fallbackProperties",
|
|
3828
|
+
dynamicProperties: "$[0].dynamicProperties",
|
|
3829
|
+
dynamicRequestConfig: "$[0].dynamicRequestConfig",
|
|
3830
|
+
asyncResultTopic: "$[0].asyncResultTopic"
|
|
3831
|
+
},
|
|
3832
|
+
singleArgumentUnchanged: false
|
|
3833
|
+
},
|
|
3834
|
+
["options"]
|
|
3835
|
+
);
|
|
3836
|
+
sideEffects?.onError?.(err);
|
|
3837
|
+
throw transformedError;
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
async function generateEmbedding2(options) {
|
|
3841
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3842
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3843
|
+
openAiEmbeddingsRequest: options?.openAiEmbeddingsRequest,
|
|
3844
|
+
azureEmbeddingsRequest: options?.azureEmbeddingsRequest,
|
|
3845
|
+
googleEmbeddingsRequest: options?.googleEmbeddingsRequest,
|
|
3846
|
+
userRequestInfo: options?.userRequestInfo
|
|
3847
|
+
});
|
|
3848
|
+
const reqOpts = generateEmbedding(payload);
|
|
3849
|
+
sideEffects?.onSiteCall?.();
|
|
3850
|
+
try {
|
|
3851
|
+
const result = await httpClient.request(reqOpts);
|
|
3852
|
+
sideEffects?.onSuccess?.(result);
|
|
3853
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3854
|
+
} catch (err) {
|
|
3855
|
+
const transformedError = sdkTransformError(
|
|
3856
|
+
err,
|
|
3857
|
+
{
|
|
3858
|
+
spreadPathsToArguments: {},
|
|
3859
|
+
explicitPathsToArguments: {
|
|
3860
|
+
openAiEmbeddingsRequest: "$[0].openAiEmbeddingsRequest",
|
|
3861
|
+
azureEmbeddingsRequest: "$[0].azureEmbeddingsRequest",
|
|
3862
|
+
googleEmbeddingsRequest: "$[0].googleEmbeddingsRequest",
|
|
3863
|
+
userRequestInfo: "$[0].userRequestInfo"
|
|
3864
|
+
},
|
|
3865
|
+
singleArgumentUnchanged: false
|
|
3866
|
+
},
|
|
3867
|
+
["options"]
|
|
3868
|
+
);
|
|
3869
|
+
sideEffects?.onError?.(err);
|
|
3870
|
+
throw transformedError;
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
async function generateTextByProject2(projectId, options) {
|
|
3874
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3875
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3876
|
+
projectId,
|
|
3877
|
+
params: options?.params,
|
|
3878
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3879
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3880
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3881
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3882
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3883
|
+
});
|
|
3884
|
+
const reqOpts = generateTextByProject(payload);
|
|
3885
|
+
sideEffects?.onSiteCall?.();
|
|
3886
|
+
try {
|
|
3887
|
+
const result = await httpClient.request(reqOpts);
|
|
3888
|
+
sideEffects?.onSuccess?.(result);
|
|
3889
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3890
|
+
} catch (err) {
|
|
3891
|
+
const transformedError = sdkTransformError(
|
|
3892
|
+
err,
|
|
3893
|
+
{
|
|
3894
|
+
spreadPathsToArguments: {},
|
|
3895
|
+
explicitPathsToArguments: {
|
|
3896
|
+
projectId: "$[0]",
|
|
3897
|
+
params: "$[1].params",
|
|
3898
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
3899
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
3900
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
3901
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
3902
|
+
asyncResultTopic: "$[1].asyncResultTopic"
|
|
3903
|
+
},
|
|
3904
|
+
singleArgumentUnchanged: false
|
|
3905
|
+
},
|
|
3906
|
+
["projectId", "options"]
|
|
3907
|
+
);
|
|
3908
|
+
sideEffects?.onError?.(err);
|
|
3909
|
+
throw transformedError;
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
async function generateTextByProjectStreamed2(projectId, options) {
|
|
3913
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3914
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3915
|
+
projectId,
|
|
3916
|
+
params: options?.params,
|
|
3917
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3918
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3919
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3920
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3921
|
+
asyncResultTopic: options?.asyncResultTopic
|
|
3922
|
+
});
|
|
3923
|
+
const reqOpts = generateTextByProjectStreamed(payload);
|
|
3924
|
+
sideEffects?.onSiteCall?.();
|
|
3925
|
+
try {
|
|
3926
|
+
const result = await httpClient.request(reqOpts);
|
|
3927
|
+
sideEffects?.onSuccess?.(result);
|
|
3928
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3929
|
+
} catch (err) {
|
|
3930
|
+
const transformedError = sdkTransformError(
|
|
3931
|
+
err,
|
|
3932
|
+
{
|
|
3933
|
+
spreadPathsToArguments: {},
|
|
3934
|
+
explicitPathsToArguments: {
|
|
3935
|
+
projectId: "$[0]",
|
|
3936
|
+
params: "$[1].params",
|
|
3937
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
3938
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
3939
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
3940
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
3941
|
+
asyncResultTopic: "$[1].asyncResultTopic"
|
|
3942
|
+
},
|
|
3943
|
+
singleArgumentUnchanged: false
|
|
3944
|
+
},
|
|
3945
|
+
["projectId", "options"]
|
|
3946
|
+
);
|
|
3947
|
+
sideEffects?.onError?.(err);
|
|
3948
|
+
throw transformedError;
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
async function generateModeration2(options) {
|
|
3952
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3953
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3954
|
+
openAiModerationRequest: options?.openAiModerationRequest,
|
|
3955
|
+
userRequestInfo: options?.userRequestInfo
|
|
3956
|
+
});
|
|
3957
|
+
const reqOpts = generateModeration(payload);
|
|
3958
|
+
sideEffects?.onSiteCall?.();
|
|
3959
|
+
try {
|
|
3960
|
+
const result = await httpClient.request(reqOpts);
|
|
3961
|
+
sideEffects?.onSuccess?.(result);
|
|
3962
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3963
|
+
} catch (err) {
|
|
3964
|
+
const transformedError = sdkTransformError(
|
|
3965
|
+
err,
|
|
3966
|
+
{
|
|
3967
|
+
spreadPathsToArguments: {},
|
|
3968
|
+
explicitPathsToArguments: {
|
|
3969
|
+
openAiModerationRequest: "$[0].openAiModerationRequest",
|
|
3970
|
+
userRequestInfo: "$[0].userRequestInfo"
|
|
3971
|
+
},
|
|
3972
|
+
singleArgumentUnchanged: false
|
|
3973
|
+
},
|
|
3974
|
+
["options"]
|
|
3975
|
+
);
|
|
3976
|
+
sideEffects?.onError?.(err);
|
|
3977
|
+
throw transformedError;
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
async function generateImageByProject2(projectId, options) {
|
|
3981
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3982
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3983
|
+
projectId,
|
|
3984
|
+
params: options?.params,
|
|
3985
|
+
userRequestInfo: options?.userRequestInfo,
|
|
3986
|
+
fallbackProperties: options?.fallbackProperties,
|
|
3987
|
+
dynamicProperties: options?.dynamicProperties,
|
|
3988
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
3989
|
+
asyncResultTopic: options?.asyncResultTopic,
|
|
3990
|
+
skipPolling: options?.skipPolling
|
|
3991
|
+
});
|
|
3992
|
+
const reqOpts = generateImageByProject(payload);
|
|
3993
|
+
sideEffects?.onSiteCall?.();
|
|
3994
|
+
try {
|
|
3995
|
+
const result = await httpClient.request(reqOpts);
|
|
3996
|
+
sideEffects?.onSuccess?.(result);
|
|
3997
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3998
|
+
} catch (err) {
|
|
3999
|
+
const transformedError = sdkTransformError(
|
|
4000
|
+
err,
|
|
4001
|
+
{
|
|
4002
|
+
spreadPathsToArguments: {},
|
|
4003
|
+
explicitPathsToArguments: {
|
|
4004
|
+
projectId: "$[0]",
|
|
4005
|
+
params: "$[1].params",
|
|
4006
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
4007
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
4008
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
4009
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
4010
|
+
asyncResultTopic: "$[1].asyncResultTopic",
|
|
4011
|
+
skipPolling: "$[1].skipPolling"
|
|
4012
|
+
},
|
|
4013
|
+
singleArgumentUnchanged: false
|
|
4014
|
+
},
|
|
4015
|
+
["projectId", "options"]
|
|
4016
|
+
);
|
|
4017
|
+
sideEffects?.onError?.(err);
|
|
4018
|
+
throw transformedError;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
async function generateImageByPrompt2(promptId, options) {
|
|
4022
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4023
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4024
|
+
promptId,
|
|
4025
|
+
params: options?.params,
|
|
4026
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4027
|
+
fallbackProperties: options?.fallbackProperties,
|
|
4028
|
+
dynamicProperties: options?.dynamicProperties,
|
|
4029
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
4030
|
+
asyncResultTopic: options?.asyncResultTopic,
|
|
4031
|
+
skipPolling: options?.skipPolling
|
|
4032
|
+
});
|
|
4033
|
+
const reqOpts = generateImageByPrompt(payload);
|
|
4034
|
+
sideEffects?.onSiteCall?.();
|
|
4035
|
+
try {
|
|
4036
|
+
const result = await httpClient.request(reqOpts);
|
|
4037
|
+
sideEffects?.onSuccess?.(result);
|
|
4038
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4039
|
+
} catch (err) {
|
|
4040
|
+
const transformedError = sdkTransformError(
|
|
4041
|
+
err,
|
|
4042
|
+
{
|
|
4043
|
+
spreadPathsToArguments: {},
|
|
4044
|
+
explicitPathsToArguments: {
|
|
4045
|
+
promptId: "$[0]",
|
|
4046
|
+
params: "$[1].params",
|
|
4047
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
4048
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
4049
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
4050
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig",
|
|
4051
|
+
asyncResultTopic: "$[1].asyncResultTopic",
|
|
4052
|
+
skipPolling: "$[1].skipPolling"
|
|
4053
|
+
},
|
|
4054
|
+
singleArgumentUnchanged: false
|
|
4055
|
+
},
|
|
4056
|
+
["promptId", "options"]
|
|
4057
|
+
);
|
|
4058
|
+
sideEffects?.onError?.(err);
|
|
4059
|
+
throw transformedError;
|
|
4060
|
+
}
|
|
4061
|
+
}
|
|
4062
|
+
async function generateImageByPromptObject2(options) {
|
|
4063
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4064
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4065
|
+
prompt: options?.prompt,
|
|
4066
|
+
params: options?.params,
|
|
4067
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4068
|
+
fallbackProperties: options?.fallbackProperties,
|
|
4069
|
+
dynamicProperties: options?.dynamicProperties,
|
|
4070
|
+
dynamicRequestConfig: options?.dynamicRequestConfig,
|
|
4071
|
+
asyncResultTopic: options?.asyncResultTopic,
|
|
4072
|
+
skipPolling: options?.skipPolling
|
|
4073
|
+
});
|
|
4074
|
+
const reqOpts = generateImageByPromptObject(payload);
|
|
4075
|
+
sideEffects?.onSiteCall?.();
|
|
4076
|
+
try {
|
|
4077
|
+
const result = await httpClient.request(reqOpts);
|
|
4078
|
+
sideEffects?.onSuccess?.(result);
|
|
4079
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4080
|
+
} catch (err) {
|
|
4081
|
+
const transformedError = sdkTransformError(
|
|
4082
|
+
err,
|
|
4083
|
+
{
|
|
4084
|
+
spreadPathsToArguments: {},
|
|
4085
|
+
explicitPathsToArguments: {
|
|
4086
|
+
prompt: "$[0].prompt",
|
|
4087
|
+
params: "$[0].params",
|
|
4088
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
4089
|
+
fallbackProperties: "$[0].fallbackProperties",
|
|
4090
|
+
dynamicProperties: "$[0].dynamicProperties",
|
|
4091
|
+
dynamicRequestConfig: "$[0].dynamicRequestConfig",
|
|
4092
|
+
asyncResultTopic: "$[0].asyncResultTopic",
|
|
4093
|
+
skipPolling: "$[0].skipPolling"
|
|
4094
|
+
},
|
|
4095
|
+
singleArgumentUnchanged: false
|
|
4096
|
+
},
|
|
4097
|
+
["options"]
|
|
4098
|
+
);
|
|
4099
|
+
sideEffects?.onError?.(err);
|
|
4100
|
+
throw transformedError;
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4103
|
+
async function generateContentByPrompt2(promptId, options) {
|
|
4104
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4105
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4106
|
+
promptId,
|
|
4107
|
+
params: options?.params,
|
|
4108
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4109
|
+
fallbackProperties: options?.fallbackProperties,
|
|
4110
|
+
dynamicProperties: options?.dynamicProperties,
|
|
4111
|
+
asyncGenerationConfig: options?.asyncGenerationConfig,
|
|
4112
|
+
dynamicRequestConfig: options?.dynamicRequestConfig
|
|
4113
|
+
});
|
|
4114
|
+
const reqOpts = generateContentByPrompt(payload);
|
|
4115
|
+
sideEffects?.onSiteCall?.();
|
|
4116
|
+
try {
|
|
4117
|
+
const result = await httpClient.request(reqOpts);
|
|
4118
|
+
sideEffects?.onSuccess?.(result);
|
|
4119
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4120
|
+
} catch (err) {
|
|
4121
|
+
const transformedError = sdkTransformError(
|
|
4122
|
+
err,
|
|
4123
|
+
{
|
|
4124
|
+
spreadPathsToArguments: {},
|
|
4125
|
+
explicitPathsToArguments: {
|
|
4126
|
+
promptId: "$[0]",
|
|
4127
|
+
params: "$[1].params",
|
|
4128
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
4129
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
4130
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
4131
|
+
asyncGenerationConfig: "$[1].asyncGenerationConfig",
|
|
4132
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig"
|
|
4133
|
+
},
|
|
4134
|
+
singleArgumentUnchanged: false
|
|
4135
|
+
},
|
|
4136
|
+
["promptId", "options"]
|
|
4137
|
+
);
|
|
4138
|
+
sideEffects?.onError?.(err);
|
|
4139
|
+
throw transformedError;
|
|
4140
|
+
}
|
|
4141
|
+
}
|
|
4142
|
+
async function generateContentByProject2(projectId, options) {
|
|
4143
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4144
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4145
|
+
projectId,
|
|
4146
|
+
params: options?.params,
|
|
4147
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4148
|
+
fallbackProperties: options?.fallbackProperties,
|
|
4149
|
+
dynamicProperties: options?.dynamicProperties,
|
|
4150
|
+
asyncGenerationConfig: options?.asyncGenerationConfig,
|
|
4151
|
+
dynamicRequestConfig: options?.dynamicRequestConfig
|
|
4152
|
+
});
|
|
4153
|
+
const reqOpts = generateContentByProject(payload);
|
|
4154
|
+
sideEffects?.onSiteCall?.();
|
|
4155
|
+
try {
|
|
4156
|
+
const result = await httpClient.request(reqOpts);
|
|
4157
|
+
sideEffects?.onSuccess?.(result);
|
|
4158
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4159
|
+
} catch (err) {
|
|
4160
|
+
const transformedError = sdkTransformError(
|
|
4161
|
+
err,
|
|
4162
|
+
{
|
|
4163
|
+
spreadPathsToArguments: {},
|
|
4164
|
+
explicitPathsToArguments: {
|
|
4165
|
+
projectId: "$[0]",
|
|
4166
|
+
params: "$[1].params",
|
|
4167
|
+
userRequestInfo: "$[1].userRequestInfo",
|
|
4168
|
+
fallbackProperties: "$[1].fallbackProperties",
|
|
4169
|
+
dynamicProperties: "$[1].dynamicProperties",
|
|
4170
|
+
asyncGenerationConfig: "$[1].asyncGenerationConfig",
|
|
4171
|
+
dynamicRequestConfig: "$[1].dynamicRequestConfig"
|
|
4172
|
+
},
|
|
4173
|
+
singleArgumentUnchanged: false
|
|
4174
|
+
},
|
|
4175
|
+
["projectId", "options"]
|
|
4176
|
+
);
|
|
4177
|
+
sideEffects?.onError?.(err);
|
|
4178
|
+
throw transformedError;
|
|
4179
|
+
}
|
|
4180
|
+
}
|
|
4181
|
+
async function generateContentByPromptObject2(options) {
|
|
4182
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4183
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4184
|
+
prompt: options?.prompt,
|
|
4185
|
+
params: options?.params,
|
|
4186
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4187
|
+
fallbackProperties: options?.fallbackProperties,
|
|
4188
|
+
dynamicProperties: options?.dynamicProperties,
|
|
4189
|
+
asyncGenerationConfig: options?.asyncGenerationConfig,
|
|
4190
|
+
dynamicRequestConfig: options?.dynamicRequestConfig
|
|
4191
|
+
});
|
|
4192
|
+
const reqOpts = generateContentByPromptObject(payload);
|
|
4193
|
+
sideEffects?.onSiteCall?.();
|
|
4194
|
+
try {
|
|
4195
|
+
const result = await httpClient.request(reqOpts);
|
|
4196
|
+
sideEffects?.onSuccess?.(result);
|
|
4197
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4198
|
+
} catch (err) {
|
|
4199
|
+
const transformedError = sdkTransformError(
|
|
4200
|
+
err,
|
|
4201
|
+
{
|
|
4202
|
+
spreadPathsToArguments: {},
|
|
4203
|
+
explicitPathsToArguments: {
|
|
4204
|
+
prompt: "$[0].prompt",
|
|
4205
|
+
params: "$[0].params",
|
|
4206
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
4207
|
+
fallbackProperties: "$[0].fallbackProperties",
|
|
4208
|
+
dynamicProperties: "$[0].dynamicProperties",
|
|
4209
|
+
asyncGenerationConfig: "$[0].asyncGenerationConfig",
|
|
4210
|
+
dynamicRequestConfig: "$[0].dynamicRequestConfig"
|
|
4211
|
+
},
|
|
4212
|
+
singleArgumentUnchanged: false
|
|
4213
|
+
},
|
|
4214
|
+
["options"]
|
|
4215
|
+
);
|
|
4216
|
+
sideEffects?.onError?.(err);
|
|
4217
|
+
throw transformedError;
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
async function generateTranscription2(options) {
|
|
4221
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4222
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4223
|
+
openAiTranscriptionRequest: options?.openAiTranscriptionRequest,
|
|
4224
|
+
userRequestInfo: options?.userRequestInfo
|
|
4225
|
+
});
|
|
4226
|
+
const reqOpts = generateTranscription(payload);
|
|
4227
|
+
sideEffects?.onSiteCall?.();
|
|
4228
|
+
try {
|
|
4229
|
+
const result = await httpClient.request(reqOpts);
|
|
4230
|
+
sideEffects?.onSuccess?.(result);
|
|
4231
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4232
|
+
} catch (err) {
|
|
4233
|
+
const transformedError = sdkTransformError(
|
|
4234
|
+
err,
|
|
4235
|
+
{
|
|
4236
|
+
spreadPathsToArguments: {},
|
|
4237
|
+
explicitPathsToArguments: {
|
|
4238
|
+
openAiTranscriptionRequest: "$[0].openAiTranscriptionRequest",
|
|
4239
|
+
userRequestInfo: "$[0].userRequestInfo"
|
|
4240
|
+
},
|
|
4241
|
+
singleArgumentUnchanged: false
|
|
4242
|
+
},
|
|
4243
|
+
["options"]
|
|
4244
|
+
);
|
|
4245
|
+
sideEffects?.onError?.(err);
|
|
4246
|
+
throw transformedError;
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
async function generateAudio2(options) {
|
|
4250
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4251
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4252
|
+
openAiCreateSpeechRequest: options?.openAiCreateSpeechRequest,
|
|
4253
|
+
elevenlabsTextToSpeechRequest: options?.elevenlabsTextToSpeechRequest,
|
|
4254
|
+
userRequestInfo: options?.userRequestInfo
|
|
4255
|
+
});
|
|
4256
|
+
const reqOpts = generateAudio(payload);
|
|
4257
|
+
sideEffects?.onSiteCall?.();
|
|
4258
|
+
try {
|
|
4259
|
+
const result = await httpClient.request(reqOpts);
|
|
4260
|
+
sideEffects?.onSuccess?.(result);
|
|
4261
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4262
|
+
} catch (err) {
|
|
4263
|
+
const transformedError = sdkTransformError(
|
|
4264
|
+
err,
|
|
4265
|
+
{
|
|
4266
|
+
spreadPathsToArguments: {},
|
|
4267
|
+
explicitPathsToArguments: {
|
|
4268
|
+
openAiCreateSpeechRequest: "$[0].openAiCreateSpeechRequest",
|
|
4269
|
+
elevenlabsTextToSpeechRequest: "$[0].elevenlabsTextToSpeechRequest",
|
|
4270
|
+
userRequestInfo: "$[0].userRequestInfo"
|
|
4271
|
+
},
|
|
4272
|
+
singleArgumentUnchanged: false
|
|
4273
|
+
},
|
|
4274
|
+
["options"]
|
|
4275
|
+
);
|
|
4276
|
+
sideEffects?.onError?.(err);
|
|
4277
|
+
throw transformedError;
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
async function generateAudioStreamed2(options) {
|
|
4281
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4282
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4283
|
+
openAiCreateSpeechRequest: options?.openAiCreateSpeechRequest,
|
|
4284
|
+
elevenlabsTextToSpeechRequest: options?.elevenlabsTextToSpeechRequest,
|
|
4285
|
+
userRequestInfo: options?.userRequestInfo
|
|
4286
|
+
});
|
|
4287
|
+
const reqOpts = generateAudioStreamed(payload);
|
|
4288
|
+
sideEffects?.onSiteCall?.();
|
|
4289
|
+
try {
|
|
4290
|
+
const result = await httpClient.request(reqOpts);
|
|
4291
|
+
sideEffects?.onSuccess?.(result);
|
|
4292
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4293
|
+
} catch (err) {
|
|
4294
|
+
const transformedError = sdkTransformError(
|
|
4295
|
+
err,
|
|
4296
|
+
{
|
|
4297
|
+
spreadPathsToArguments: {},
|
|
4298
|
+
explicitPathsToArguments: {
|
|
4299
|
+
openAiCreateSpeechRequest: "$[0].openAiCreateSpeechRequest",
|
|
4300
|
+
elevenlabsTextToSpeechRequest: "$[0].elevenlabsTextToSpeechRequest",
|
|
4301
|
+
userRequestInfo: "$[0].userRequestInfo"
|
|
4302
|
+
},
|
|
4303
|
+
singleArgumentUnchanged: false
|
|
4304
|
+
},
|
|
4305
|
+
["options"]
|
|
4306
|
+
);
|
|
4307
|
+
sideEffects?.onError?.(err);
|
|
4308
|
+
throw transformedError;
|
|
4309
|
+
}
|
|
4310
|
+
}
|
|
4311
|
+
async function publishPrompt2(_id, options) {
|
|
4312
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4313
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4314
|
+
prompt: { ...options?.prompt, id: _id }
|
|
4315
|
+
});
|
|
4316
|
+
const reqOpts = publishPrompt(payload);
|
|
4317
|
+
sideEffects?.onSiteCall?.();
|
|
4318
|
+
try {
|
|
4319
|
+
const result = await httpClient.request(reqOpts);
|
|
4320
|
+
sideEffects?.onSuccess?.(result);
|
|
4321
|
+
} catch (err) {
|
|
4322
|
+
const transformedError = sdkTransformError(
|
|
4323
|
+
err,
|
|
4324
|
+
{
|
|
4325
|
+
spreadPathsToArguments: { prompt: "$[1].prompt" },
|
|
4326
|
+
explicitPathsToArguments: { "prompt.id": "$[0]" },
|
|
4327
|
+
singleArgumentUnchanged: false
|
|
4328
|
+
},
|
|
4329
|
+
["_id", "options"]
|
|
4330
|
+
);
|
|
4331
|
+
sideEffects?.onError?.(err);
|
|
4332
|
+
throw transformedError;
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
async function getPrompt2(promptId, options) {
|
|
4336
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4337
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4338
|
+
promptId,
|
|
4339
|
+
params: options?.params,
|
|
4340
|
+
dynamicProperties: options?.dynamicProperties
|
|
4341
|
+
});
|
|
4342
|
+
const reqOpts = getPrompt(payload);
|
|
4343
|
+
sideEffects?.onSiteCall?.();
|
|
4344
|
+
try {
|
|
4345
|
+
const result = await httpClient.request(reqOpts);
|
|
4346
|
+
sideEffects?.onSuccess?.(result);
|
|
4347
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.prompt;
|
|
4348
|
+
} catch (err) {
|
|
4349
|
+
const transformedError = sdkTransformError(
|
|
4350
|
+
err,
|
|
4351
|
+
{
|
|
4352
|
+
spreadPathsToArguments: {},
|
|
4353
|
+
explicitPathsToArguments: {
|
|
4354
|
+
promptId: "$[0]",
|
|
4355
|
+
params: "$[1].params",
|
|
4356
|
+
dynamicProperties: "$[1].dynamicProperties"
|
|
4357
|
+
},
|
|
4358
|
+
singleArgumentUnchanged: false
|
|
4359
|
+
},
|
|
4360
|
+
["promptId", "options"]
|
|
4361
|
+
);
|
|
4362
|
+
sideEffects?.onError?.(err);
|
|
4363
|
+
throw transformedError;
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
4366
|
+
async function publishProject2(_id, options) {
|
|
4367
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4368
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4369
|
+
project: { ...options?.project, id: _id }
|
|
4370
|
+
});
|
|
4371
|
+
const reqOpts = publishProject(payload);
|
|
4372
|
+
sideEffects?.onSiteCall?.();
|
|
4373
|
+
try {
|
|
4374
|
+
const result = await httpClient.request(reqOpts);
|
|
4375
|
+
sideEffects?.onSuccess?.(result);
|
|
4376
|
+
} catch (err) {
|
|
4377
|
+
const transformedError = sdkTransformError(
|
|
4378
|
+
err,
|
|
4379
|
+
{
|
|
4380
|
+
spreadPathsToArguments: { project: "$[1].project" },
|
|
4381
|
+
explicitPathsToArguments: { "project.id": "$[0]" },
|
|
4382
|
+
singleArgumentUnchanged: false
|
|
4383
|
+
},
|
|
4384
|
+
["_id", "options"]
|
|
4385
|
+
);
|
|
4386
|
+
sideEffects?.onError?.(err);
|
|
4387
|
+
throw transformedError;
|
|
4388
|
+
}
|
|
4389
|
+
}
|
|
4390
|
+
async function getProject2(projectId) {
|
|
4391
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4392
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4393
|
+
projectId
|
|
4394
|
+
});
|
|
4395
|
+
const reqOpts = getProject(payload);
|
|
4396
|
+
sideEffects?.onSiteCall?.();
|
|
4397
|
+
try {
|
|
4398
|
+
const result = await httpClient.request(reqOpts);
|
|
4399
|
+
sideEffects?.onSuccess?.(result);
|
|
4400
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4401
|
+
} catch (err) {
|
|
4402
|
+
const transformedError = sdkTransformError(
|
|
4403
|
+
err,
|
|
4404
|
+
{
|
|
4405
|
+
spreadPathsToArguments: {},
|
|
4406
|
+
explicitPathsToArguments: { projectId: "$[0]" },
|
|
4407
|
+
singleArgumentUnchanged: false
|
|
4408
|
+
},
|
|
4409
|
+
["projectId"]
|
|
4410
|
+
);
|
|
4411
|
+
sideEffects?.onError?.(err);
|
|
4412
|
+
throw transformedError;
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
async function getStatus2(entityId, entityType) {
|
|
4416
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4417
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4418
|
+
entityId,
|
|
4419
|
+
entityType
|
|
4420
|
+
});
|
|
4421
|
+
const reqOpts = getStatus(payload);
|
|
4422
|
+
sideEffects?.onSiteCall?.();
|
|
4423
|
+
try {
|
|
4424
|
+
const result = await httpClient.request(reqOpts);
|
|
4425
|
+
sideEffects?.onSuccess?.(result);
|
|
4426
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4427
|
+
} catch (err) {
|
|
4428
|
+
const transformedError = sdkTransformError(
|
|
4429
|
+
err,
|
|
4430
|
+
{
|
|
4431
|
+
spreadPathsToArguments: {},
|
|
4432
|
+
explicitPathsToArguments: { entityId: "$[0]", entityType: "$[1]" },
|
|
4433
|
+
singleArgumentUnchanged: false
|
|
4434
|
+
},
|
|
4435
|
+
["entityId", "entityType"]
|
|
4436
|
+
);
|
|
4437
|
+
sideEffects?.onError?.(err);
|
|
4438
|
+
throw transformedError;
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
async function getApplicationUsage2() {
|
|
4442
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
4443
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
4444
|
+
const reqOpts = getApplicationUsage(payload);
|
|
4445
|
+
sideEffects?.onSiteCall?.();
|
|
4446
|
+
try {
|
|
4447
|
+
const result = await httpClient.request(reqOpts);
|
|
4448
|
+
sideEffects?.onSuccess?.(result);
|
|
4449
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4450
|
+
} catch (err) {
|
|
4451
|
+
const transformedError = sdkTransformError(
|
|
4452
|
+
err,
|
|
4453
|
+
{
|
|
4454
|
+
spreadPathsToArguments: {},
|
|
4455
|
+
explicitPathsToArguments: {},
|
|
4456
|
+
singleArgumentUnchanged: false
|
|
4457
|
+
},
|
|
4458
|
+
[]
|
|
4459
|
+
);
|
|
4460
|
+
sideEffects?.onError?.(err);
|
|
4461
|
+
throw transformedError;
|
|
4462
|
+
}
|
|
4463
|
+
}
|
|
4464
|
+
async function editImage2(options) {
|
|
4465
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4466
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4467
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4468
|
+
photoroomRemoveBackgroundRequest: options?.photoroomRemoveBackgroundRequest,
|
|
4469
|
+
photoroomImageEditingRequest: options?.photoroomImageEditingRequest,
|
|
4470
|
+
stabilityAiEditRequest: options?.stabilityAiEditRequest,
|
|
4471
|
+
replicateEditImageRequest: options?.replicateEditImageRequest
|
|
4472
|
+
});
|
|
4473
|
+
const reqOpts = editImage(payload);
|
|
4474
|
+
sideEffects?.onSiteCall?.();
|
|
4475
|
+
try {
|
|
4476
|
+
const result = await httpClient.request(reqOpts);
|
|
4477
|
+
sideEffects?.onSuccess?.(result);
|
|
4478
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4479
|
+
} catch (err) {
|
|
4480
|
+
const transformedError = sdkTransformError(
|
|
4481
|
+
err,
|
|
4482
|
+
{
|
|
4483
|
+
spreadPathsToArguments: {},
|
|
4484
|
+
explicitPathsToArguments: {
|
|
4485
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
4486
|
+
photoroomRemoveBackgroundRequest: "$[0].photoroomRemoveBackgroundRequest",
|
|
4487
|
+
photoroomImageEditingRequest: "$[0].photoroomImageEditingRequest",
|
|
4488
|
+
stabilityAiEditRequest: "$[0].stabilityAiEditRequest",
|
|
4489
|
+
replicateEditImageRequest: "$[0].replicateEditImageRequest"
|
|
4490
|
+
},
|
|
4491
|
+
singleArgumentUnchanged: false
|
|
4492
|
+
},
|
|
4493
|
+
["options"]
|
|
4494
|
+
);
|
|
4495
|
+
sideEffects?.onError?.(err);
|
|
4496
|
+
throw transformedError;
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
async function pollImageGenerationResult2(options) {
|
|
4500
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4501
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4502
|
+
userRequestInfo: options?.userRequestInfo,
|
|
4503
|
+
replicateGetResultRequest: options?.replicateGetResultRequest,
|
|
4504
|
+
bflGetResultRequest: options?.bflGetResultRequest,
|
|
4505
|
+
runwareGetTaskResultRequest: options?.runwareGetTaskResultRequest
|
|
4506
|
+
});
|
|
4507
|
+
const reqOpts = pollImageGenerationResult(payload);
|
|
4508
|
+
sideEffects?.onSiteCall?.();
|
|
4509
|
+
try {
|
|
4510
|
+
const result = await httpClient.request(reqOpts);
|
|
4511
|
+
sideEffects?.onSuccess?.(result);
|
|
4512
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4513
|
+
} catch (err) {
|
|
4514
|
+
const transformedError = sdkTransformError(
|
|
4515
|
+
err,
|
|
4516
|
+
{
|
|
4517
|
+
spreadPathsToArguments: {},
|
|
4518
|
+
explicitPathsToArguments: {
|
|
4519
|
+
userRequestInfo: "$[0].userRequestInfo",
|
|
4520
|
+
replicateGetResultRequest: "$[0].replicateGetResultRequest",
|
|
4521
|
+
bflGetResultRequest: "$[0].bflGetResultRequest",
|
|
4522
|
+
runwareGetTaskResultRequest: "$[0].runwareGetTaskResultRequest"
|
|
4523
|
+
},
|
|
4524
|
+
singleArgumentUnchanged: false
|
|
4525
|
+
},
|
|
4526
|
+
["options"]
|
|
4527
|
+
);
|
|
4528
|
+
sideEffects?.onError?.(err);
|
|
4529
|
+
throw transformedError;
|
|
4530
|
+
}
|
|
4531
|
+
}
|
|
4532
|
+
export {
|
|
4533
|
+
AnthropicModel,
|
|
4534
|
+
CacheControlType,
|
|
4535
|
+
ChatBisonModel,
|
|
4536
|
+
ChatCompletionMessageMessageRole,
|
|
4537
|
+
ChatCompletionModel,
|
|
4538
|
+
ClaudeModel,
|
|
4539
|
+
ClipGuidancePreset,
|
|
4540
|
+
ContentRole,
|
|
4541
|
+
CreatePredictionModel,
|
|
4542
|
+
CreateTranscriptionRequestResponseFormat,
|
|
4543
|
+
EditImageModel,
|
|
4544
|
+
EditImageWithPromptRequestModel,
|
|
4545
|
+
ElevenLabsTextToSpeechModel,
|
|
4546
|
+
EmbeddingEncodingFormat,
|
|
4547
|
+
EmbeddingModel,
|
|
4548
|
+
EntityType,
|
|
4549
|
+
FinishReason,
|
|
4550
|
+
GatewayMessageDefinitionRole,
|
|
4551
|
+
GenerateAnImageModel,
|
|
4552
|
+
GenerateCoreRequestStylePreset,
|
|
4553
|
+
GenerateImageMlPlatformModel,
|
|
4554
|
+
GenerateStableDiffusionRequestOutputFormat,
|
|
4555
|
+
GenerationMode,
|
|
4556
|
+
GoogleproxyV1McpServerType,
|
|
4557
|
+
GoogleproxyV1Model,
|
|
4558
|
+
GoogleproxyV1ResponseTypeType,
|
|
4559
|
+
GoogleproxyV1ToolChoiceType,
|
|
4560
|
+
HarmCategory,
|
|
4561
|
+
HarmProbability,
|
|
4562
|
+
ImageCoreModel,
|
|
4563
|
+
ImageEditingModel,
|
|
4564
|
+
ImageMediaTypeMediaType,
|
|
4565
|
+
ImageModel,
|
|
4566
|
+
ImageQuality,
|
|
4567
|
+
ImageSize,
|
|
4568
|
+
ImageStableDiffusionModel,
|
|
4569
|
+
ImageStyle,
|
|
4570
|
+
ImagenModel,
|
|
4571
|
+
Language,
|
|
4572
|
+
LlamaModel,
|
|
4573
|
+
McpServerType,
|
|
4574
|
+
MediaType,
|
|
4575
|
+
MessageRole,
|
|
4576
|
+
MessageRoleRole,
|
|
4577
|
+
Modality,
|
|
4578
|
+
Mode,
|
|
4579
|
+
Model,
|
|
4580
|
+
OpenAiImageModel,
|
|
4581
|
+
OpenaiproxyV1ChatCompletionMessageMessageRole,
|
|
4582
|
+
OpenaiproxyV1EmbeddingModel,
|
|
4583
|
+
OpenaiproxyV1Model,
|
|
4584
|
+
OutageStatus,
|
|
4585
|
+
Outcome,
|
|
4586
|
+
OutputFormat,
|
|
4587
|
+
PerplexityMessageMessageRole,
|
|
4588
|
+
PerplexityModel,
|
|
4589
|
+
ResponseTypeType,
|
|
4590
|
+
ResponsesInputMessageResponsesMessageRole,
|
|
4591
|
+
ResponsesMessageRole,
|
|
4592
|
+
ResponsesModel,
|
|
4593
|
+
Role,
|
|
4594
|
+
Sampler,
|
|
4595
|
+
SpeechModel,
|
|
4596
|
+
StylePreset,
|
|
4597
|
+
TaskType,
|
|
4598
|
+
TextBisonModel,
|
|
4599
|
+
TextToImageRequestModel,
|
|
4600
|
+
TextToImageRequestStylePreset,
|
|
4601
|
+
Threshold,
|
|
4602
|
+
TimestampGranularity,
|
|
4603
|
+
ToolChoiceType,
|
|
4604
|
+
TranscriptionModel,
|
|
4605
|
+
Type,
|
|
4606
|
+
V1CacheControlType,
|
|
4607
|
+
V1ChatCompletionMessageMessageRole,
|
|
4608
|
+
V1EditImageModel,
|
|
4609
|
+
V1EmbeddingEncodingFormat,
|
|
4610
|
+
V1EmbeddingModel,
|
|
4611
|
+
V1ImageMediaTypeMediaType,
|
|
4612
|
+
V1ImageModel,
|
|
4613
|
+
V1McpServerType,
|
|
4614
|
+
V1MessageRoleRole,
|
|
4615
|
+
V1Model,
|
|
4616
|
+
V1ResponseTypeType,
|
|
4617
|
+
V1ResponsesModel,
|
|
4618
|
+
V1ToolChoiceType,
|
|
4619
|
+
VideoGenModel,
|
|
4620
|
+
VideoModel,
|
|
4621
|
+
WebhookIdentityType,
|
|
4622
|
+
editImage2 as editImage,
|
|
4623
|
+
generateAudio2 as generateAudio,
|
|
4624
|
+
generateAudioStreamed2 as generateAudioStreamed,
|
|
4625
|
+
generateContentByProject2 as generateContentByProject,
|
|
4626
|
+
generateContentByPrompt2 as generateContentByPrompt,
|
|
4627
|
+
generateContentByPromptObject2 as generateContentByPromptObject,
|
|
4628
|
+
generateEmbedding2 as generateEmbedding,
|
|
4629
|
+
generateImageByProject2 as generateImageByProject,
|
|
4630
|
+
generateImageByPrompt2 as generateImageByPrompt,
|
|
4631
|
+
generateImageByPromptObject2 as generateImageByPromptObject,
|
|
4632
|
+
generateModeration2 as generateModeration,
|
|
4633
|
+
generateTextByProject2 as generateTextByProject,
|
|
4634
|
+
generateTextByProjectStreamed2 as generateTextByProjectStreamed,
|
|
4635
|
+
generateTextByPrompt2 as generateTextByPrompt,
|
|
4636
|
+
generateTextByPromptObject2 as generateTextByPromptObject,
|
|
4637
|
+
generateTextByPromptObjectStreamed2 as generateTextByPromptObjectStreamed,
|
|
4638
|
+
generateTextByPromptStreamed2 as generateTextByPromptStreamed,
|
|
4639
|
+
generateTranscription2 as generateTranscription,
|
|
4640
|
+
getApplicationUsage2 as getApplicationUsage,
|
|
4641
|
+
getProject2 as getProject,
|
|
4642
|
+
getPrompt2 as getPrompt,
|
|
4643
|
+
getStatus2 as getStatus,
|
|
4644
|
+
pollImageGenerationResult2 as pollImageGenerationResult,
|
|
4645
|
+
publishProject2 as publishProject,
|
|
4646
|
+
publishPrompt2 as publishPrompt
|
|
4647
|
+
};
|
|
4648
|
+
//# sourceMappingURL=index.typings.mjs.map
|