Skip to content

Commit 12007d4

Browse files
committed
Merge branch 'features/from-master/ds-generic-bug-fix-8' into features/to-master-pre/ds-generic-bug-fix-8
2 parents f722961 + 5315ecf commit 12007d4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/chatbot-design-studio/cds-dashboard/cds-canvas/actions/list/cds-action-ai-prompt/cds-action-ai-prompt.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export class CdsActionAiPromptComponent implements OnInit {
134134
private initialize(){
135135
if(this.action.llm){
136136
this.initLLMModels();
137+
this.actionLabelModel = this.action['labelModel']?this.action['labelModel']:'';
137138
this.llm_options_models = this.llm_models.find(el => el.value === this.action.llm).models.filter(el => el.status === 'active')
138139
}
139140
}
@@ -171,12 +172,12 @@ export class CdsActionAiPromptComponent implements OnInit {
171172
initLLMModels(){
172173
this.autocompleteOptions = [];
173174
this.logger.log('[ACTION AI_PROMPT] initLLMModels',this.action.llm);
175+
this.actionLabelModel = '';
174176
if(this.action.llm){
175177
const filteredModels = this.getModelsByName(this.action.llm);
176178
filteredModels.forEach(el => this.autocompleteOptions.push({label: el.name, value: el.value}));
177179
this.logger.log('[ACTION AI_PROMPT] filteredModels',filteredModels);
178180
}
179-
this.actionLabelModel = this.action['labelModel'];
180181
}
181182

182183
getModelsByName(value: string): any[] {

0 commit comments

Comments
 (0)