call right sdk method on ai module for enriching AI config
This commit is contained in:
parent
e40f397c25
commit
8e2d21c85f
|
@ -1 +1 @@
|
||||||
Subproject commit 72e9846146b46efc7cbdc69daea17761cb45f1d3
|
Subproject commit 69633aa64b962ac4bad01360a421fe941a15fb2c
|
|
@ -346,7 +346,7 @@ export async function find(ctx: UserCtx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === ConfigType.AI) {
|
if (type === ConfigType.AI) {
|
||||||
await pro.ai.enrichAIConfig(scopedConfig)
|
await pro.sdk.ai.enrichAIConfig(scopedConfig)
|
||||||
// Strip out the API Keys from the response so they don't show in the UI
|
// Strip out the API Keys from the response so they don't show in the UI
|
||||||
for (const key in scopedConfig.config) {
|
for (const key in scopedConfig.config) {
|
||||||
if (scopedConfig.config[key].apiKey) {
|
if (scopedConfig.config[key].apiKey) {
|
||||||
|
|
Loading…
Reference in New Issue