Skip to content

Commit b0f07f0

Browse files
authored
Rename generateColumn command (#31262)
1 parent 0182b8f commit b0f07f0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/devextreme/js/__internal/core/ai_integration/commands/generateGridColumn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class GenerateGridColumnCommand extends BaseCommand<
77
GenerateGridColumnCommandResult
88
> {
99
protected getTemplateName(): PromptTemplateName {
10-
return 'generateColumn';
10+
return 'generateGridColumn';
1111
}
1212

1313
protected buildPromptData(params: GenerateGridColumnCommandParams): PromptData {

packages/devextreme/js/__internal/core/ai_integration/core/prompt_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type PromptTemplateName =
2121
| 'summarize'
2222
| 'translate'
2323
| 'smartPaste'
24-
| 'generateColumn';
24+
| 'generateGridColumn';
2525

2626
export type PromptTemplates = Map<PromptTemplateName, PromptTemplate>;
2727

packages/devextreme/js/__internal/core/ai_integration/templates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const templates: PromptTemplates = {
3131
system: 'You are a helpful assistant that helps to fill fields based on the text provided. You will get a text and a list of fields that should be filled using info from the text. It can include the name of field, suitable format, optionally some additional instruction about what it should include. You need to return data for all the fields in the following format without any preamble, introduction, or explanatory text: {fieldName}:::{fieldValue};;;{fieldName}:::{fieldValue} and so on, where {fieldName} - is a variable for a field name and {fieldValue} - is a variable for a string to fill. If there is no info to fill, field value should be empty (like Name:::;;;)- do not use placeholders like (empty), N/A, null, or similar. Only fill in date fields if a complete date is explicitly present. If the date is missing or incomplete, leave the field empty.',
3232
user: 'Text: {{text}}. Fields: {{fields}}.',
3333
},
34-
generateColumn: {
34+
generateGridColumn: {
3535
system: 'You are a helpful assistant that generates column data based on the provided text and existing data context. Generate appropriate column values that match the request and are consistent with the existing data structure.',
3636
user: 'Text: {{text}}. Data: {{data}}.',
3737
},

0 commit comments

Comments
 (0)