标签: Python

Keyword Input Arguments for Click Events

Keyword Input Arguments for Click Events

这个报错通常出现在你尝试把带有仅限关键字参数(keyword-only arguments)的 Python 函数直接绑定到 Gradio 的 Button.click 等事件时,因为 Gradio 的事件接口只接受位置参数(positional arguments)。优先排查你的函数签名中是否存在

[Bug]: Prompt Injection Detection Issues

[Bug]: Prompt Injection Detection Issues

这是 LiteLLM Proxy 内置 prompt injection 检测功能同时出现两类故障的场景——启用 heuristics_check: true 时同步相似度计算阻塞 FastAPI 事件循环,导致健康检查探针超时、K8s Pod 被重启;而 llm_api_check: true 因