Initial Commit

This commit is contained in:
bladeclara42
2025-05-13 22:43:56 +07:00
commit 5469707c2d
16 changed files with 81 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,9 @@
from app.core.deepseek_client import chat_with_openai
async def translate_text(text: str, target_language: str) -> str:
messages = [
{"role": "system", "content": f"Translate the following text into {target_language}. Output only the translated text without explanation."},
{"role": "user", "content": text},
]
translated_text = await chat_with_openai(messages)
return translated_text