@artemiskit/cli 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +83 -0
- package/bin/artemis.ts +0 -0
- package/dist/index.js +70637 -33387
- package/dist/src/commands/compare.d.ts.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/redteam.d.ts.map +1 -1
- package/dist/src/commands/run.d.ts.map +1 -1
- package/dist/src/commands/stress.d.ts.map +1 -1
- package/dist/src/config/loader.d.ts +3 -1
- package/dist/src/config/loader.d.ts.map +1 -1
- package/dist/src/config/schema.d.ts +8 -0
- package/dist/src/config/schema.d.ts.map +1 -1
- package/dist/src/ui/index.d.ts +3 -1
- package/dist/src/ui/index.d.ts.map +1 -1
- package/dist/src/ui/panels.d.ts +21 -0
- package/dist/src/ui/panels.d.ts.map +1 -1
- package/dist/src/ui/prompts.d.ts +92 -0
- package/dist/src/ui/prompts.d.ts.map +1 -0
- package/dist/src/utils/adapter.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/commands/compare.ts +25 -0
- package/src/commands/init.ts +173 -69
- package/src/commands/redteam.ts +63 -10
- package/src/commands/run.ts +542 -137
- package/src/commands/stress.ts +76 -3
- package/src/config/loader.ts +5 -2
- package/src/config/schema.ts +1 -0
- package/src/ui/index.ts +19 -0
- package/src/ui/panels.ts +153 -5
- package/src/ui/prompts.ts +749 -0
- package/src/utils/adapter.ts +8 -0
package/src/utils/adapter.ts
CHANGED
|
@@ -263,6 +263,13 @@ function buildAzureOpenAIConfig(options: ProviderBuildOptions): AdapterConfigRes
|
|
|
263
263
|
{ value: '2024-02-15-preview', source: 'default' }
|
|
264
264
|
);
|
|
265
265
|
|
|
266
|
+
// Embedding deployment (optional, for models that need separate embedding deployment)
|
|
267
|
+
const resolvedEmbeddingDeploymentName = resolveValueWithSource<string>(
|
|
268
|
+
{ value: scenarioConfig?.embeddingDeploymentName, source: 'scenario' },
|
|
269
|
+
{ value: fileProviderConfig?.embeddingDeploymentName, source: 'config' },
|
|
270
|
+
{ value: process.env.AZURE_OPENAI_EMBEDDING_DEPLOYMENT, source: 'env' }
|
|
271
|
+
);
|
|
272
|
+
|
|
266
273
|
const resolvedTimeout = resolveValueWithSource<number>(
|
|
267
274
|
{ value: scenarioConfig?.timeout, source: 'scenario' },
|
|
268
275
|
{ value: fileProviderConfig?.timeout, source: 'config' }
|
|
@@ -292,6 +299,7 @@ function buildAzureOpenAIConfig(options: ProviderBuildOptions): AdapterConfigRes
|
|
|
292
299
|
defaultModel: resolvedModel.value,
|
|
293
300
|
timeout: resolvedTimeout.value,
|
|
294
301
|
maxRetries: resolvedMaxRetries.value,
|
|
302
|
+
embeddingDeploymentName: resolvedEmbeddingDeploymentName.value,
|
|
295
303
|
},
|
|
296
304
|
resolvedConfig: {
|
|
297
305
|
provider,
|