Skip to content

Add Model Compatibility Config Option supportsDeveloperRole to Pi-Web UI #579

Description

@rockswang

I’ve observed that many non‑official OpenAI‑compatible APIs do not support the role used by Pi. At best, they return an explicit error; at worst, they silently ignore it. The symptom is that Pi’s system prompt is completely disregarded, causing the agent to lose its instruction context and behave like a naive, generic chatbot (“dumb sweetheart”).

Suggestion:
Please add the following configuration option to the Pi‑Web UI, so users can quickly toggle it when needed:

json
"compat": {
"supportsDeveloperRole": false
}
This would allow users to explicitly disable the role for backends that do not support it, preventing silent failures and preserving intended agent behavior.


发现很多非官方的OpenAI兼容接口,并不支持 Pi 的角色,好一点的给个报错,差一点的直接忽略掉了,现象就是 Pi 的系统提示词被忽略,智能体变傻白甜。
建议 Pi-Web的界面把下面这个配置加入 UI,允许用户快速配置。
"compat": {
"supportsDeveloperRole": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions