Add checkers
This commit is contained in:
parent
2f4b7d0c53
commit
884c68314a
0
checkers/__init__.py
Normal file
0
checkers/__init__.py
Normal file
19
checkers/check_openai.py
Normal file
19
checkers/check_openai.py
Normal 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())
|
||||
Loading…
Reference in New Issue
Block a user