@artemiskit/cli 0.2.0 → 0.2.3
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 +97 -0
- package/dist/index.js +65256 -63756
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/commands/baseline.d.ts +9 -0
- package/dist/src/commands/baseline.d.ts.map +1 -0
- package/dist/src/commands/history.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/schema.d.ts +8 -0
- package/dist/src/config/schema.d.ts.map +1 -1
- package/dist/src/utils/adapter.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/cli.ts +2 -0
- package/src/commands/baseline.ts +473 -0
- package/src/commands/history.ts +58 -9
- package/src/commands/redteam.ts +19 -1
- package/src/commands/run.ts +479 -52
- package/src/commands/stress.ts +28 -0
- package/src/config/schema.ts +3 -0
- package/src/utils/adapter.ts +7 -0
package/src/utils/adapter.ts
CHANGED
|
@@ -270,6 +270,12 @@ function buildAzureOpenAIConfig(options: ProviderBuildOptions): AdapterConfigRes
|
|
|
270
270
|
{ value: process.env.AZURE_OPENAI_EMBEDDING_DEPLOYMENT, source: 'env' }
|
|
271
271
|
);
|
|
272
272
|
|
|
273
|
+
// Model family for parameter detection (e.g., 'gpt-5-mini' when deployment is '5-mini')
|
|
274
|
+
const resolvedModelFamily = resolveValueWithSource<string>(
|
|
275
|
+
{ value: scenarioConfig?.modelFamily, source: 'scenario' },
|
|
276
|
+
{ value: fileProviderConfig?.modelFamily, source: 'config' }
|
|
277
|
+
);
|
|
278
|
+
|
|
273
279
|
const resolvedTimeout = resolveValueWithSource<number>(
|
|
274
280
|
{ value: scenarioConfig?.timeout, source: 'scenario' },
|
|
275
281
|
{ value: fileProviderConfig?.timeout, source: 'config' }
|
|
@@ -300,6 +306,7 @@ function buildAzureOpenAIConfig(options: ProviderBuildOptions): AdapterConfigRes
|
|
|
300
306
|
timeout: resolvedTimeout.value,
|
|
301
307
|
maxRetries: resolvedMaxRetries.value,
|
|
302
308
|
embeddingDeploymentName: resolvedEmbeddingDeploymentName.value,
|
|
309
|
+
modelFamily: resolvedModelFamily.value,
|
|
303
310
|
},
|
|
304
311
|
resolvedConfig: {
|
|
305
312
|
provider,
|