forked from gptscript-ai/gpt4-v-vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtool.gpt
10 lines (9 loc) · 776 Bytes
/
tool.gpt
1
2
3
4
5
6
7
8
9
10
Name: vision
Credential: github.com/gptscript-ai/vision/credential
Description: Analyze a set of images using a given prompt and vision model.
Args: detail: (optional) Fidelity to process images at. One of ["high", "low", "auto"]. Default is "auto".
Args: max-tokens: (optional) The maximum number of tokens. Default is 2048.
Args: model: (optional) The name of the model to use. Default is "gpt-4-vision-preview".
Args: prompt: (required) The text prompt based on which the GPT model will generate a response.
Args: images: (required) Space-delimited list of image URIs to analyze. Valid URI protocols are "http" and "https" for remote images, and "file" for local images. Only supports jpeg and png.
#!/usr/bin/env node ${GPTSCRIPT_TOOL_DIR}/index.js "${PROMPT}" ${IMAGES}