Начало разработки модуля YandexGPT

This commit is contained in:
Armatik
2024-01-02 22:39:00 +03:00
parent 649e780109
commit dee4f5bc79
6 changed files with 151 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import yaml
from service import paths
from ....service import paths
def get_config(is_test: bool = False) -> dict:
@@ -13,3 +13,7 @@ def get_config(is_test: bool = False) -> dict:
return yaml.full_load(file)
def get_yandexgpt_token() -> str:
return get_config()["YANDEX_GPT_TOKEN"]