VLM Template

1. Get VLM Template List API

This API retrieves a list of vlm templates, including their ID, name, instruction and instruction_keys.

Endpoint: GET /vlms

Parameters:

Parameter
Description
Type
Required
Default

offset

The offset for pagination.

integer

No

0

limit

The maximum number of results per page.

integer

No

100

Example Request:

GET /vlms?offset=0&limit=10

Example Response:

[
    {
        "id": 1,
        "name": "交通場景1",
        "instruction": "1.描述交通場景(key): string\\n例如,描述汽車、行人的數量以及整體情況。\\n2. 人口密度(%)(key): number\\n輸入 1 到 100% 之間的值。由此可見現場有多擁擠。\\n3. 天氣(key): vec \\n單選 (value in: 晴天,陰天,雨天,下雪)\\n4. 車輛類型(key): vec \\n多種選擇:(value in: 汽車、卡車、摩托車、自行車、救護車、警車等。)\\n5. 有停車位嗎(key): boolean\\n根據可見的停車位回答“正確”或“錯誤”。\\n6. 警報級別(key): number\\n從 0 到 5 的等級,其中:\\n• 0:無警報\\n• 4:違規\\n• 5:交通事故\\n7. 描述任何異常情況(key): string\\n例如:車禍、火災、打架、危險狀況等。",
        "instruction_keys": {
            "天氣": "string",
            "警報級別": "number",
            "車輛類型": "object",
            "有停車位嗎": "boolean",
            "描述交通場景": "string",
            "人口密度(%)": "number",
            "描述任何異常情況": "string"
        }
    },
    {
        "id": 2,
        "name": "交通場景2",
        "instruction": "告訴我圖片上的狀況:\\n1.描述交通場景(key): string\\n2. 人口密度(%)(key): number\\n3. 天氣(key): vec",
        "instruction_keys": {
            "天氣": "object",
            "描述交通場景": "string",
            "人口密度(%)": "number"
        }
    }
]

Response Fields:

Field
Description
Type

id

The unique identifier for the vlm template.

integer

name

The name of the vlm template.

string

instruction

The instruction of the compute target.

string

instruction_keys

The instruction keys of the vlm template.

object

Last updated