slide-deck-ai / global_config.py
barunsaha's picture
Add code for the first version
3e68ccf
raw
history blame
747 Bytes
from dataclasses import dataclass
from dotenv import load_dotenv
import os
load_dotenv()
@dataclass(frozen=True)
class GlobalConfig:
CLARIFAI_PAT = os.environ.get('CLARIFAI_PAT', '')
CLARIFAI_USER_ID = 'meta'
CLARIFAI_APP_ID = 'Llama-2'
CLARIFAI_MODEL_ID = 'llama2-13b-chat'
CLARIFAI_USER_ID_GPT = 'openai'
CLARIFAI_APP_ID_GPT = 'chat-completion'
CLARIFAI_MODEL_ID_GPT = 'GPT-3_5-turbo'
# LLM_MODEL_TEMPERATURE: float = 0.5
LLM_MODEL_MIN_OUTPUT_LENGTH: int = 50
LLM_MODEL_MAX_OUTPUT_LENGTH: int = 2000
LLM_MODEL_MAX_INPUT_LENGTH: int = 1000
APP_STRINGS_FILE = 'strings.json'
PRELOAD_DATA_FILE = 'examples/example_02.json'
SLIDES_TEMPLATE_FILE = 'langchain_templates/template_07.txt'