Skip to content

[BUG] Attachments v0.4.1 #12

@karankanu

Description

@karankanu

I am attempting to use attachments in v0.4.1 with create chat and the async response provides a chat but then when calling get chat by ID on that same chat ID it seems to return a 404 only if attachments were passed in (works otherwise).

Example code:

chat = await Promise.race([
        v0.chats.create({
          message: enhancedPrompt,
          projectId: project.id,
          responseMode: "async",
          attachments: [
            {
              url: "https://xyz.public.blob.vercel-storage.com/test.pdf",
            },
          ],
          modelConfiguration: {
            modelId: "v0-1.5-md",
            imageGenerations: true,
            thinking: true,
          },
        }),
[Auto-GenerateAsync-Background] V0 generation initiated successfully {
  chatId: 'abc',
  projectId: 'def',
  demoUrl: 'https://v0.dev/chat/abc',
  totalDuration: '3886ms',
  asyncMode: true
}

❌ [V0-Status] V0 API error occurred, attempting recovery {
  chatId: 'abc',
  errorMessage: 'HTTP 404: {"error":{"type":"not_found_error","message":"Chat not found"}}'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions