Improve search

This commit is contained in:
2026-03-02 02:26:25 +00:00
parent a9f5f3f75d
commit b94219fc5b
20 changed files with 1626 additions and 314 deletions

View File

@@ -55,7 +55,10 @@ async def _translate_text(user, text: str, source_lang: str, target_lang: str) -
),
},
]
return str(await ai_runner.run_prompt(prompt, ai_obj) or "").strip()
return str(
await ai_runner.run_prompt(prompt, ai_obj, operation="translation")
or ""
).strip()
async def process_inbound_translation(message: Message):