{% if params_kw.id %} {% set llmid = params_kw.id %} { "widgettype": "VBox", "options": { "width": "100%", "height": "100%", "spacing": 10 }, "subwidgets": [ { "widgettype": "Title", "options": { "text": "模型上线检查", "level": 2 } }, { "widgettype": "VScrollPanel", "id": "check_scroll", "options": { "css": "filler", "width": "100%" }, "subwidgets": [ { "widgettype": "VBox", "id": "checks_list", "options": { "spacing": 5 }, "subwidgets": [ { "widgettype": "urlwidget", "options": { "url": "/llmage/check_model_record.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_date_status.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_upapp.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_uapi.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_uapiio.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_llm_api_map.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_pricing_program.dspy?llmid={{llmid}}" } }, { "widgettype": "urlwidget", "options": { "url": "/llmage/check_pricing_data.dspy?llmid={{llmid}}" } } ] }, { "widgettype": "Text", "id": "test_result", "options": { "text": "", "i18n": false } }, { "widgettype": "Text", "id": "charge_result", "options": { "text": "", "i18n": false } } ] }, { "widgettype": "HBox", "options": { "spacing": 10, "alignItems": "center" }, "subwidgets": [ { "widgettype": "Button", "id": "test_btn", "options": { "label": "体验一次", "i18n": false } }, { "widgettype": "Button", "id": "charge_btn", "options": { "label": "检查计费", "i18n": false } } ] } ], "binds": [ { "wid": "test_btn", "event": "click", "actiontype": "urldata", "target": "test_result", "options": { "url": "/llmage/api/llm_launch_check_api.dspy?llmid={{llmid}}&action=inference" } }, { "wid": "charge_btn", "event": "click", "actiontype": "urldata", "target": "charge_result", "options": { "url": "/llmage/api/llm_launch_check_api.dspy?llmid={{llmid}}&action=check_charging&usages={\"prompt_tokens\":1000,\"completion_tokens\":500}" } } ] } {% else %} { "widgettype": "Text", "options": { "text": "缺少模型ID参数", "i18n": true } } {% endif %}