- turned model_variables into a class with lazy loading
- some improvements to Healthchecks
This commit is contained in:
@@ -137,6 +137,12 @@ class Config(object):
|
||||
MAIL_PASSWORD = environ.get('MAIL_PASSWORD')
|
||||
MAIL_DEFAULT_SENDER = ('eveAI Admin', MAIL_USERNAME)
|
||||
|
||||
# Langsmith settings
|
||||
LANGCHAIN_TRACING_V2 = True
|
||||
LANGCHAIN_ENDPOINT = 'https://api.smith.langchain.com'
|
||||
LANGCHAIN_PROJECT = "eveai"
|
||||
|
||||
|
||||
SUPPORTED_FILE_TYPES = ['pdf', 'html', 'md', 'txt', 'mp3', 'mp4', 'ogg', 'srt']
|
||||
|
||||
TENANT_TYPES = ['Active', 'Demo', 'Inactive', 'Test']
|
||||
|
||||
41
config/model_config.py
Normal file
41
config/model_config.py
Normal file
@@ -0,0 +1,41 @@
|
||||
MODEL_CONFIG = {
|
||||
"openai": {
|
||||
"gpt-4o": {
|
||||
"tool_calling_supported": True,
|
||||
"processing_chunk_size": 10000,
|
||||
"processing_chunk_overlap": 200,
|
||||
"processing_min_chunk_size": 8000,
|
||||
"processing_max_chunk_size": 12000,
|
||||
"prompt_templates": [
|
||||
"summary", "rag", "history", "encyclopedia",
|
||||
"transcript", "html_parse", "pdf_parse"
|
||||
]
|
||||
},
|
||||
"gpt-4o-mini": {
|
||||
"tool_calling_supported": True,
|
||||
"processing_chunk_size": 10000,
|
||||
"processing_chunk_overlap": 200,
|
||||
"processing_min_chunk_size": 8000,
|
||||
"processing_max_chunk_size": 12000,
|
||||
"prompt_templates": [
|
||||
"summary", "rag", "history", "encyclopedia",
|
||||
"transcript", "html_parse", "pdf_parse"
|
||||
]
|
||||
},
|
||||
# Add other OpenAI models here
|
||||
},
|
||||
"anthropic": {
|
||||
"claude-3-5-sonnet": {
|
||||
"tool_calling_supported": True,
|
||||
"processing_chunk_size": 10000,
|
||||
"processing_chunk_overlap": 200,
|
||||
"processing_min_chunk_size": 8000,
|
||||
"processing_max_chunk_size": 12000,
|
||||
"prompt_templates": [
|
||||
"summary", "rag", "history", "encyclopedia",
|
||||
"transcript", "html_parse", "pdf_parse"
|
||||
]
|
||||
},
|
||||
# Add other Anthropic models here
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user