pipeline-llm/wwwroot/api/llm_call_trace_io.dspy

11 lines
722 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.

# llm_call_trace_io.dspy — 「查看IO」弹窗内容薄代理业务逻辑在 pipeline_llm.init.llm_call_trace_io
# 入参: idtrace 行主键,列表页 toolbar selected_row 自动注入行数据)
# 返回: TabPanel上下文摘要/请求原文/响应原文)——外层 PopupWindow 壳由列表页
# binds 的 popup_options 生成,此处只返回内容 widget返回 PopupWindow 会套娃)
uid = await get_user()
if not uid:
return {"widgettype": "Message", "options": {"title": "提示", "message": "请先登录", "cwidth": 20, "cheight": 8, "timeout": 3}}
user_org = await get_userorgid() or '0'
result = await llm_call_trace_io(dict(params_kw or {}), str(user_org))
return result