Add checkers

This commit is contained in:
ruslangilfanov 2025-06-15 22:38:00 +03:00
parent 2f4b7d0c53
commit 884c68314a
No known key found for this signature in database
2 changed files with 19 additions and 0 deletions

0
checkers/__init__.py Normal file
View File

19
checkers/check_openai.py Normal file
View File

@ -0,0 +1,19 @@
import asyncio
from greek_lang.container import init_main_container
from greek_lang.openai_manager.manager import OpenAiManager
async def main():
async with init_main_container() as container:
open_ai_manager: OpenAiManager = await container.openai_container().ai_manager()
source_lang = "el"
target_lang = "ru"
word_response = await open_ai_manager.get_gpt_response(
word="έμπορος", source_lang=source_lang, target_lang=target_lang
)
print(word_response)
if __name__ == "__main__":
asyncio.run(main())