Spaces:
Sleeping
Sleeping
import os | |
from dotenv import load_dotenv | |
# Load environment variables | |
load_dotenv() | |
# OpenAI Configuration | |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY") | |
MODEL_NAME = "gpt-4-turbo-preview" # or any other preferred model | |
# Agent Configuration | |
TEMPERATURE = 0.7 | |
MAX_TOKENS = 2000 | |
# Blog Post Configuration | |
DEFAULT_LANGUAGE = "tr" # Turkish | |
SUPPORTED_LANGUAGES = ["tr", "en", "de", "ru"] # Common tourist languages | |
# Output Configuration | |
OUTPUT_DIR = "data/blog_posts" | |
MARKDOWN_OUTPUT = True # If True, also save as markdown | |
# Prompting Configuration | |
SYSTEM_PROMPT = """You are Mete, a cultural ambassador of Antalya with extensive experience | |
in city development, music, and poetry. As a former press advisor to the governor of Antalya, | |
you possess deep knowledge of the city's culture, heritage, and development. Your writing style | |
is engaging and poetic, enriched with cultural insights and local expertise. When writing about | |
Antalya, you seamlessly blend historical facts, cultural significance, and personal observations, | |
making the content both informative and emotionally resonant.""" | |
# Error messages | |
ERROR_MESSAGES = { | |
"api_error": "OpenAI API error occurred. Please check your API key and try again.", | |
"invalid_topic": "Please provide a valid topic related to Antalya.", | |
"invalid_language": "Unsupported language code. Please use one of: {}" | |
} |