v0.8.0
[0.8.0]
Breaking Changes
Changed
- Upgraded to casual-llm >= 0.6.0.
- Change config structure to match casual-llm new client/model class structure
- Improved logging across the framework.
- ModelFactory now accepts a
Configobject in the constructor andget_model()takes only a model name. Previous API:ModelFactory()+get_model(name, model_config, client_configs). New API:ModelFactory(config)+get_model(name). - API key resolution is now handled by casual-llm via
ClientConfig.name. Lookup order: explicitapi_keyin config >{CLIENT_NAME.upper()}_API_KEYenv var > provider default env var (e.g.OPENAI_API_KEY,ANTHROPIC_API_KEY). - Provider strings are passed directly to casual-llm's
ClientConfiginstead of being mapped to an enum. casual-llm handles string-to-enum coercion internally. McpClientConfig.providertype relaxed fromLiteral["openai", "ollama", "anthropic"]tostrfor forward compatibility with new providers.
Added
casual-mcp migrate-configCLI command to migrate legacy config files (withprovider/endpointin models) to the newclients/modelsformat.
Removed
PROVIDER_MAPdict (no longer needed since casual-llm accepts provider strings).API_KEY_ENV_VARSdict and manualos.getenv()API key lookup (now handled by casual-llm).- Auto-migration of legacy config at load time. Use
casual-mcp migrate-configinstead.