We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fb0f1d commit 530b610Copy full SHA for 530b610
1 file changed
apps/demos/Demos/DataGrid/AIAssistant/jQuery/index.js
@@ -20,16 +20,14 @@ $(() => {
20
temperature: 0.7,
21
};
22
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
- }
+ params.response_format = {
+ type: 'json_schema',
+ json_schema: {
+ name: 'grid_assistant_response',
+ strict: true,
+ schema: responseSchema,
+ },
+ };
33
34
const response = await aiService.chat.completions
35
.create(params, { signal });
0 commit comments