mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 16:07:46 +00:00
768229427d
* simplify RDAgent conf * add unified cacher(untested) * fix small bugs * fix a bug * fix a small bug in runner * use hash_key = None to skip cache * fix CI * in factor execution, ignore cache when raise exception * add file locker to avoid mp calling * fix CI * use function __module__ name as folder in cache
24 lines
567 B
Python
24 lines
567 B
Python
from pathlib import Path
|
|
from typing import Union
|
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class ModelImplSettings(BaseSettings):
|
|
class Config:
|
|
env_prefix = "MODEL_CODER_" # Use MODEL_CODER_ as prefix for environment variables
|
|
|
|
coder_use_cache: bool = False
|
|
|
|
knowledge_base_path: Union[str, None] = None
|
|
new_knowledge_base_path: Union[str, None] = None
|
|
|
|
max_loop: int = 10
|
|
|
|
query_former_trace_limit: int = 5
|
|
query_similar_success_limit: int = 5
|
|
fail_task_trial_limit: int = 20
|
|
|
|
|
|
MODEL_IMPL_SETTINGS = ModelImplSettings()
|