-
Notifications
You must be signed in to change notification settings - Fork 9
Analyze image service call for Vision models. #7
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed