Skip to content

Commit 2fa7d90

Browse files
Grids AI Column Demos: Update UX texts (DevExpress#31823)
1 parent 93fd022 commit 2fa7d90

File tree

18 files changed

+30
-30
lines changed

18 files changed

+30
-30
lines changed

apps/demos/Demos/DataGrid/AIColumns/Angular/app/ai/ai.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function getAIResponseRecursive(messages: AIMessage[], signal: AbortSignal
5050
}
5151

5252
notify({
53-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
53+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
5454
width: 'auto',
5555
type: 'error',
5656
displayTime: 5000,
@@ -68,7 +68,7 @@ const aiIntegration = new AIIntegration({
6868

6969
if (!isValidRequest) {
7070
return {
71-
promise: Promise.reject(new Error('Request is too large')),
71+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
7272
abort: () => {},
7373
};
7474
}

apps/demos/Demos/DataGrid/AIColumns/Angular/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
[width]="200"
5656
>
5757
<dxo-data-grid-ai
58-
prompt="Identify the country where this vehicle model is originally manufactured or developed, based on its brand, model, and specifications."
58+
prompt="Identify the country where the vehicle model is manufactured. When looking up a country, consider vehicle brand, model, and specifications."
5959
mode="auto"
6060
noDataText="No data"
6161
/>

apps/demos/Demos/DataGrid/AIColumns/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function App() {
9494
<AI
9595
mode="auto"
9696
noDataText="No data"
97-
prompt="Identify the country where this vehicle model is originally manufactured or developed, based on its brand, model, and specifications."
97+
prompt="Identify the country where the vehicle model is manufactured. When looking up a country, consider vehicle brand, model, and specifications."
9898
/>
9999
</Column>
100100
</DataGrid>

apps/demos/Demos/DataGrid/AIColumns/React/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function getAIResponseRecursive(messages: AIMessage[], signal: AbortSignal
3939
}
4040

4141
notify({
42-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
42+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
4343
width: 'auto',
4444
type: 'error',
4545
displayTime: 5000,
@@ -56,7 +56,7 @@ export const aiIntegration = new AIIntegration({
5656
const isValidRequest = JSON.stringify(prompt.user).length < 5000;
5757
if (!isValidRequest) {
5858
return {
59-
promise: Promise.reject(new Error('Request is too large')),
59+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
6060
abort: () => {},
6161
};
6262
}

apps/demos/Demos/DataGrid/AIColumns/ReactJs/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function App() {
8686
<AI
8787
mode="auto"
8888
noDataText="No data"
89-
prompt="Identify the country where this vehicle model is originally manufactured or developed, based on its brand, model, and specifications."
89+
prompt="Identify the country where the vehicle model is manufactured. When looking up a country, consider vehicle brand, model, and specifications."
9090
/>
9191
</Column>
9292
</DataGrid>

apps/demos/Demos/DataGrid/AIColumns/ReactJs/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function getAIResponseRecursive(messages, signal) {
2727
return Promise.reject(error);
2828
}
2929
notify({
30-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
30+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
3131
width: 'auto',
3232
type: 'error',
3333
displayTime: 5000,
@@ -41,7 +41,7 @@ export const aiIntegration = new AIIntegration({
4141
const isValidRequest = JSON.stringify(prompt.user).length < 5000;
4242
if (!isValidRequest) {
4343
return {
44-
promise: Promise.reject(new Error('Request is too large')),
44+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
4545
abort: () => {},
4646
};
4747
}

apps/demos/Demos/DataGrid/AIColumns/Vue/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
cssClass="ai__cell"
5555
type="ai"
5656
:ai="{
57-
prompt: 'Identify the country where this vehicle model is originally manufactured or developed, based on its brand, model, and specifications.',
57+
prompt: 'Identify the country where the vehicle model is manufactured. When looking up a country, consider vehicle brand, model, and specifications.',
5858
mode: 'auto',
5959
noDataText: 'No data',
6060
}"

apps/demos/Demos/DataGrid/AIColumns/Vue/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function getAIResponseRecursive(messages: AIMessage[], signal: AbortSignal
4949
}
5050

5151
notify({
52-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
52+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
5353
width: 'auto',
5454
type: 'error',
5555
displayTime: 5000,
@@ -67,7 +67,7 @@ export const aiIntegration = new AIIntegration({
6767

6868
if (!isValidRequest) {
6969
return {
70-
promise: Promise.reject(new Error('Request is too large')),
70+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
7171
abort: () => {},
7272
};
7373
}

apps/demos/Demos/DataGrid/AIColumns/jQuery/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $(() => {
3434
}
3535

3636
DevExpress.ui.notify({
37-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
37+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
3838
width: 'auto',
3939
type: 'error',
4040
displayTime: 5000,
@@ -51,7 +51,7 @@ $(() => {
5151
const isValidRequest = JSON.stringify(prompt.user).length < 5000;
5252
if (!isValidRequest) {
5353
return {
54-
promise: Promise.reject(new Error('Request is too large')),
54+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
5555
abort: () => {},
5656
};
5757
}
@@ -221,7 +221,7 @@ $(() => {
221221
caption: 'AI Column',
222222
type: 'ai',
223223
ai: {
224-
prompt: 'Identify the country where this vehicle model is originally manufactured or developed, based on its brand, model, and specifications.',
224+
prompt: 'Identify the country where the vehicle model is manufactured. When looking up a country, consider vehicle brand, model, and specifications.',
225225
mode: 'auto',
226226
noDataText: 'No data',
227227
},

apps/demos/Demos/TreeList/AIColumns/Angular/app/ai/ai.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function getAIResponseRecursive(messages: AIMessage[], signal: AbortSignal
5050
}
5151

5252
notify({
53-
message: 'You have reached the AI rate limits of this demo. Retrying in 30 seconds...',
53+
message: 'Our demo AI service reached a temporary request limit. Retrying in 30 seconds.',
5454
width: 'auto',
5555
type: 'error',
5656
displayTime: 5000,
@@ -68,7 +68,7 @@ const aiIntegration = new AIIntegration({
6868

6969
if (!isValidRequest) {
7070
return {
71-
promise: Promise.reject(new Error('Request is too large')),
71+
promise: Promise.reject(new Error('Request is too long. Specify a shorter prompt.')),
7272
abort: () => {},
7373
};
7474
}

0 commit comments

Comments
 (0)