Skip to content

Commit 8a10dc6

Browse files
fix TS in Vue demo
1 parent ded6f75 commit 8a10dc6

File tree

1 file changed

+3
-3
lines changed
  • apps/demos/Demos/Form/SmartPaste/Vue

1 file changed

+3
-3
lines changed

apps/demos/Demos/Form/SmartPaste/Vue/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const formRef = ref();
142142
type AIMessage = (
143143
OpenAI.ChatCompletionUserMessageParam | OpenAI.ChatCompletionSystemMessageParam
144144
) & {
145-
content: string | undefined;
145+
content: string;
146146
};
147147
148148
const 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);

0 commit comments

Comments
 (0)