@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.
@@ -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,