Improve search
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user