Начало разработки модуля 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

1
src/modules/external/__init__.py vendored Normal file
View File

@@ -0,0 +1 @@
from . import yandexgpt

View File

View File

@@ -0,0 +1,6 @@
{
"name": "YandexGPT",
"description": "Модуль для работы с Yandex GPT",
"author": "OCAB Team",
"version": "1.0"
}

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"]