@contentgrowth/llm-service 1.2.1 → 1.2.2

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/dist/index.js CHANGED
@@ -72,7 +72,8 @@ var DefaultConfigProvider = class extends BaseConfigProvider {
72
72
  return {
73
73
  provider: tenantConfig.provider,
74
74
  models: MODEL_CONFIGS[tenantConfig.provider],
75
- apiKey: tenantConfig.api_key,
75
+ // for backward compatibility, api_key is deprecated and shall never be used!!
76
+ apiKey: tenantConfig.apiKey || tenantConfig.api_key,
76
77
  project: tenantConfig.project,
77
78
  location: tenantConfig.location,
78
79
  temperature: parseFloat(env.DEFAULT_TEMPERATURE || "0.7"),