fix: use correct model name in onUpdateDocument function (#828)

This commit is contained in:
Adil Khalil 2025-02-26 11:13:20 +05:00 committed by GitHub
parent ef7eb9dd5f
commit 95a2af2535
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ export const codeDocumentHandler = createDocumentHandler<'code'>({
let draftContent = '';
const { fullStream } = streamObject({
model: myProvider.languageModel('artifacts-model'),
model: myProvider.languageModel('artifact-model'),
system: updateDocumentPrompt(document.content, 'code'),
prompt: description,
schema: z.object({