@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.cjs CHANGED
@@ -122,7 +122,8 @@ var DefaultConfigProvider = class extends BaseConfigProvider {
122
122
  return {
123
123
  provider: tenantConfig.provider,
124
124
  models: MODEL_CONFIGS[tenantConfig.provider],
125
- apiKey: tenantConfig.api_key,
125
+ // for backward compatibility, api_key is deprecated and shall never be used!!
126
+ apiKey: tenantConfig.apiKey || tenantConfig.api_key,
126
127
  project: tenantConfig.project,
127
128
  location: tenantConfig.location,
128
129
  temperature: parseFloat(env.DEFAULT_TEMPERATURE || "0.7"),