- Improvements to EntitlementsDomain & Services - Prechecks in Document domain - Add audit information to LicenseUsage
44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
import os
|
|
|
|
|
|
class Config:
|
|
"""Base configuration for the EveAI client."""
|
|
# EveAI API settings
|
|
TENANT_ID = os.environ.get('EVEAI_TENANT_ID', '2') # Default tenant ID
|
|
API_KEY = os.environ.get('EVEAI_API_KEY', 'EveAI-4479-9311-1356-6142-6703-2915-6079-6640') # Default API key
|
|
API_BASE_URL = os.environ.get('EVEAI_API_BASE_URL', 'http://macstudio.ask-eve-ai-local.com:8080/api')
|
|
|
|
# Specialist settings
|
|
# List of available specialists (ID, name, description)
|
|
SPECIALISTS = [
|
|
{
|
|
'id': 3,
|
|
'name': 'RAG Specialist',
|
|
'description': 'Answers questions on Evie / Ask Eve AI'
|
|
},
|
|
{
|
|
'id': 2,
|
|
'name': 'SPIN Specialist',
|
|
'description': 'Answers questions and tries to dive deeper into context of customer'
|
|
},
|
|
# Add more specialists as needed
|
|
]
|
|
|
|
# Cache settings
|
|
# Instead of SQLite, we'll use in-memory caching with an expiry time
|
|
TOKEN_CACHE_EXPIRY = 3600 # 1 hour
|
|
CONFIG_CACHE_EXPIRY = 86400 # 24 hours
|
|
|
|
# UI settings
|
|
WINDOW_TITLE = 'EveAI Client'
|
|
WINDOW_WIDTH = 1200
|
|
WINDOW_HEIGHT = 800
|
|
WINDOW_MIN_WIDTH = 800
|
|
WINDOW_MIN_HEIGHT = 600
|
|
|
|
|
|
def get_config(config_name='default'):
|
|
configs = {
|
|
'default': Config,
|
|
}
|
|
return configs.get(config_name) |