Skip to content

'url' field must be a base64 encoded image. #195

@magesh-presidio

Description

@magesh-presidio

What happened?

While using the local vision model for browser use, it throws an error - 'url' field must be a base64 encoded image.

Steps to reproduce

  1. Launch the local vision model.
  2. In HAI Code Generator, set up the local model in API Configuration by choosing the correct provider.
  3. Ensure that Browser Settings are enabled.
  4. Start a new chat and input a prompt intended for browser usage (e.g., “Open the browser and search for an available electronics product”).
  5. Once the browser initially opens, an error appears on the client side as a generic message, while the actual error is recorded on the server side.

Relevant API REQUEST output

2025-08-12 11:58:44  [INFO]
 [LM STUDIO SERVER] Running chat completion on conversation with 2 messages.
2025-08-12 11:58:44  [INFO]
 [LM STUDIO SERVER] Streaming response...
2025-08-12 11:59:13  [INFO]
 Returning {
  "data": [
    {
      "id": "qwen/qwen2.5-vl-7b",
      "object": "model",
      "owned_by": "organization_owner"
    },
    {
      "id": "qwen2-vl-2b-instruct",
      "object": "model",
      "owned_by": "organization_owner"
    },
    {
      "id": "text-embedding-nomic-embed-text-v1.5",
      "object": "model",
      "owned_by": "organization_owner"
    }
  ],
  "object": "list"
}
2025-08-12 11:59:34  [INFO]
 Finished streaming response
2025-08-12 11:59:35 [ERROR]
 [Server Error] 'url' field must be a base64 encoded image

Provider/Model

qwen/qwen2.5-vl-7b

Operating System

macOs Sonoma

System Info

Apple M3 Pro: RAM - 18gb

HAI Build Version

v3.7.2

Additional context

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions