fix: use correct model name in onUpdateDocument function (#828)
This commit is contained in:
parent
ef7eb9dd5f
commit
95a2af2535
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ export const codeDocumentHandler = createDocumentHandler<'code'>({
|
||||||
let draftContent = '';
|
let draftContent = '';
|
||||||
|
|
||||||
const { fullStream } = streamObject({
|
const { fullStream } = streamObject({
|
||||||
model: myProvider.languageModel('artifacts-model'),
|
model: myProvider.languageModel('artifact-model'),
|
||||||
system: updateDocumentPrompt(document.content, 'code'),
|
system: updateDocumentPrompt(document.content, 'code'),
|
||||||
prompt: description,
|
prompt: description,
|
||||||
schema: z.object({
|
schema: z.object({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue