Skip to content

Commit 530b610

Browse files
author
Raushen
committed
Fix condition
1 parent 6fb0f1d commit 530b610

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

  • apps/demos/Demos/DataGrid/AIAssistant/jQuery

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@ $(() => {
2020
temperature: 0.7,
2121
};
2222

23-
if (responseSchema) {
24-
params.response_format = {
25-
type: 'json_schema',
26-
json_schema: {
27-
name: 'grid_assistant_response',
28-
strict: true,
29-
schema: responseSchema,
30-
},
31-
};
32-
}
23+
params.response_format = {
24+
type: 'json_schema',
25+
json_schema: {
26+
name: 'grid_assistant_response',
27+
strict: true,
28+
schema: responseSchema,
29+
},
30+
};
3331

3432
const response = await aiService.chat.completions
3533
.create(params, { signal });

0 commit comments

Comments
 (0)