pipeline-llm/wwwroot/api/update_llm_account.dspy

6 lines
486 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# update_llm_account.dspy — 薄封装:走模块 helperapi_key 非空才重新加密,空=不改)
r = json.loads(await update_llm_account(dict(params_kw or {})))
if r.get('success'):
return {"widgettype": "Message", "options": {"title": "Success", "message": r.get('message') or 'ok', "timeout": 3, "cwidth": 16, "cheight": 9}}
return {"widgettype": "Error", "options": {"title": "Error", "message": r.get('message') or 'failed', "timeout": 3, "cwidth": 16, "cheight": 9}}