# Configuration for Generative AI Application # All API keys and parameters are externalized following Configuration-Driven Architecture # OpenAI Configuration openai: api_key: "${OPENAI_API_KEY}" # Set via environment variable model: "gpt-4o-mini" temperature: 0.7 max_tokens: 1000 # Tavily Search Configuration tavily: api_key: "${TAVILY_API_KEY}" # Set via environment variable max_results: 5 search_depth: "basic" # Options: basic, advanced # Wikipedia Configuration wikipedia: language: "en" sentences: 3 auto_suggest: true # Gradio Configuration gradio: server_name: "0.0.0.0" server_port: 7860 share: false show_api: false # Application Settings app: system_prompt: "You are a helpful AI assistant with access to Wikipedia and web search tools. Use these tools when you need current information or facts to answer user questions." max_conversation_history: 10