Added - `arcade dev` - serves a simple fastapi actor - `arcade config` - show/edit/change config in `~/.arcade` - `arcade chat` - chat with LLM without toolcalls Changed: - `arcade show`, `arcade run` - can now use all installed toolkits --------- Co-authored-by: Nate Barbettini <nate@arcade-ai.com>
20 lines
425 B
Python
20 lines
425 B
Python
from functools import lru_cache
|
|
from pathlib import Path
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env")
|
|
|
|
WORK_DIR: Path = Path.home() / ".arcade"
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
# env_file = os.getenv("ARCADE_ENV_FILE")
|
|
# TODO allow env override
|
|
return Settings()
|
|
|
|
|
|
settings = get_settings()
|