You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,20 +108,23 @@ To get GPT's analysis of a local image, use the following service call.
108
108
```yaml
109
109
service: gpt4vision.image_analyzer
110
110
data:
111
+
provider: OpenAI
112
+
message: Describe what you see?
111
113
max_tokens: 100
112
-
message: Describe what you see
114
+
model: gpt-4o
113
115
image_file: |-
114
116
/config/www/tmp/example.jpg
115
117
/config/www/tmp/example2.jpg
116
-
provider: LocalAI
117
-
model: gpt-4-vision-preview
118
118
target_width: 1280
119
+
detail: low
119
120
temperature: 0.5
120
121
```
121
-
The parameters `message`, `max_tokens`, `image_file`, `provider` and `temperature` are required. You can send multiple images per service call. Note that each path must be on a new line.
122
-
123
-
Optionally, the `model` and `target_width` properties can be set. For available models check these pages: [OpenAI](https://platform.openai.com/docs/models) and [LocalAI](https://localai.io/models/).
122
+
The parameters `provider`, `message`, `max_tokens`, `image_file` and `temperature` are required. You can send multiple images per service call. Note that each path must be on a new line.
124
123
124
+
Optionally, the `model`, `target_width` and `detail` properties can be set.
125
+
- For available **models** check these pages: [supported models for OpenAI](https://platform.openai.com/docs/models) and [LocalAI model gallery](https://localai.io/models/).
126
+
- The **target_width** is an integer between 640 and 3840 representing the image width in pixels. It is used to downscale the image before encoding it.
127
+
- The **detail** parameter can be set to `low` or `high`. If it is not set, it is set to 'auto'. OpenAI will then use the image size to determine the detail level. For more information check the [OpenAI documentation](https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding).
125
128
## How to report a bug or request a feature
126
129
> [!NOTE]
127
130
> **Bugs:** If you encounter any bugs and have followed the instructions carefully, feel free to file a bug report.
0 commit comments