Skip to content

Analyze image service call for Vision models. #7

@maxi1134

Description

@maxi1134

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

I've been trying to get a vision model running with a rest_command.
It works sometimes, and am wondering if this integration could add a service call for that, just like OpenAI has in HA.

Describe the solution you'd like

An action to analyze an image ( URL or Entity in HA)

Describe alternatives you've considered

A curl rest command.

Nominally:


    url: http://192.168.0.14:3000/api/chat/completions
    method: POST
    content_type: 'application/json'
    timeout: 120
    headers:
      authorization: !secret open_webui_rest_headers_secret
    payload: > 
      {
            "messages": [
                {
                    "role": "image_url",
                    "content": "{{url}}",
                    "temperature": 0.1
                },
                {
                    "role": "user",
                    "content": "{{prompt}}",
                    "temperature": 0.1
                }
            ],
            "model": "maxi_llama32-vision:latest"
        }

Additional context

It would be great if the prompt is modular as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions