llmage/wwwroot/llm_launch_check.ui

146 lines
2.6 KiB
XML

{% 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": "Text",
"options": {
"name": "check_status",
"text": "检查中...",
"i18n": false
}
},
{
"widgettype": "VBox",
"options": {
"name": "checks_list",
"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": "Button",
"options": {
"name": "test_btn",
"label": "体验一次",
"i18n": false
}
},
{
"widgettype": "Text",
"options": {
"name": "test_result",
"text": "",
"i18n": false
}
},
{
"widgettype": "Button",
"options": {
"name": "charge_btn",
"label": "检查计费",
"i18n": false
}
},
{
"widgettype": "Text",
"options": {
"name": "charge_result",
"text": "",
"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 %}