Changelog
- Config.display(): Improved masking of private keys.
- Config.display(): Resolved issue 18 where the google_vertex_response_validation field appeared in config.describe for non-Google APIs.
- Config.display(): Fixed an issue where fields loaded into ENV that differ from defaults were not displayed.
- get_bool_from_env(): Corrected to ensure default values are not converted to boolean.
- Added a metrics context manager.
- Python code execution: Added max_execution_time to the Timeout error text in python.execute() to display maximum execution time.
- Updated and extended requirements, including chroma_db and anthropic.
- OpenAI API: Enhanced error handling.
- Transformers: Added support for OpenAI-style parameters (n, seed, stop).
- Fix 22: Corrected an issue where responses from the Anthropic API had a "content" property that overrides the default one provided by microcore in the LLMResponse class.
- configure(): Updated to accept a configuration file name as its sole argument.
- Enhanced capability to configure properties with list or dict types from JSON-serialized values in environment variables or configuration files.
- Enabled the configuration of callables as strings using the format <module_name>.<func_name>.
- The following configuration fields can now be loaded from environment variables or configuration files: CHAT_MODE, GOOGLE_VERTEX_GCLOUD_AUTH, GOOGLE_GEMINI_SAFETY_SETTINGS, LLM_DEFAULT_ARGS, INFERENCE_FUNC, STORAGE_DEFAULT_FILE_EXT, EMBEDDING_DB_FOLDER, MAX_CONCURRENT_TASKS.
- Additional documentation comments have been added.
- Additional tests have been added.
**Full Changelog**: https://github.com/Nayjest/ai-microcore/compare/v3.8.0...v3.9.0