mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 03:30:48 +08:00
fix(ops): English replies from English prompts and ROLE_SYSTEM.en
Detect language from user message before UI hint, load ops ROLE_SYSTEM.en.md when en, and wire user_text through WS/HTTP/worker paths. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f1626195f7
commit
0de5f7bc98
9 changed files with 151 additions and 19 deletions
|
|
@ -80,8 +80,7 @@ def default_tool_tags_for_specialist(specialist_id: SpecialistId) -> frozenset[s
|
|||
|
||||
def default_system_prefix_for_specialist(specialist_id: SpecialistId, lang: str = "zh") -> str:
|
||||
sid = normalize_specialist_id(specialist_id)
|
||||
_ = (lang or "zh").strip().lower()
|
||||
return build_role_system_context(sid)
|
||||
return build_role_system_context(sid, lang=(lang or "zh").strip().lower())
|
||||
|
||||
|
||||
def model_role_for_specialist(specialist_id: SpecialistId) -> AgentRoleId:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue