File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/demos/Demos/Form/SmartPaste/Vue Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ const formRef = ref();
142142type AIMessage = (
143143 OpenAI .ChatCompletionUserMessageParam | OpenAI .ChatCompletionSystemMessageParam
144144) & {
145- content: string | undefined ;
145+ content: string ;
146146};
147147
148148const aiService = new AzureOpenAI (AzureOpenAIConfig );
@@ -167,8 +167,8 @@ const aiIntegration = new AIIntegration({
167167 const signal = controller .signal ;
168168
169169 const aiPrompt: AIMessage [] = [
170- { role: ' system' , content: prompt .system },
171- { role: ' user' , content: prompt .user },
170+ { role: ' system' , content: prompt .system || ' ' },
171+ { role: ' user' , content: prompt .user || ' ' },
172172 ];
173173
174174 const promise = getAIResponse (aiPrompt , signal );
You can’t perform that action at this time.
0 commit comments