Skip to content

Commit e473d05

Browse files
committed
Merge branch 'release/v0.6.1' into dev
2 parents 9642665 + 020c517 commit e473d05

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@
1010
- **Enhanced `Pipelex.make()` method**: Complete overhaul of the initialization method with new path configuration options and robust validation:
1111
- Added `relative_config_folder_path` and `absolute_config_folder_path` parameters for flexible config folder specification
1212
- The `from_file` parameter controls path resolution: if `True` (default), relative paths are resolved relative to the caller's file location; if `False`, relative to the current working directory (useful for CLI scenarios)
13+
- Renamed Makefile targets like `make doc` to `make docs` for consistency
1314

1415
### Added
1516
- Added github action for inference tests
1617
- `load_json_list_from_path` function in `pipelex.tools.misc.file_utils`: Loads a JSON file and ensures it contains a list.
18+
- Added issue templates
19+
- Updated Azure/OpenAI integrations, using dated deployment names systematically
1720

1821
## [v0.5.2] - 2025-07-11
1922

pipelex/pipelex.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(
8383
self.pipelex_hub.setup_config(config_cls=config_cls or PipelexConfig)
8484
except ValidationError as exc:
8585
error_msg = format_pydantic_validation_error(exc)
86-
raise PipelexConfigError(f"Error because of: {error_msg}") from exc
86+
raise PipelexConfigError(f"Could not setup config because of: {error_msg}") from exc
8787

8888
for extra_env_file in get_config().pipelex.extra_env_files:
8989
load_dotenv(dotenv_path=extra_env_file, override=True)
@@ -202,15 +202,15 @@ def setup_libraries(self):
202202
self.pipelex_hub.set_llm_deck_provider(llm_deck_provider=llm_deck)
203203
except ValidationError as exc:
204204
error_msg = format_pydantic_validation_error(exc)
205-
raise PipelexSetupError(f"Error because of: {error_msg}") from exc
205+
raise PipelexSetupError(f"Could not setup libraries because of: {error_msg}") from exc
206206
log.debug(f"{PACKAGE_NAME} version {PACKAGE_VERSION} setup libraries done for {get_config().project_name}")
207207

208208
def validate_libraries(self):
209209
try:
210210
self.library_manager.validate_libraries()
211211
except ValidationError as exc:
212212
error_msg = format_pydantic_validation_error(exc)
213-
raise PipelexSetupError(f"Error because of: {error_msg}") from exc
213+
raise PipelexSetupError(f"Could not validate libraries because of: {error_msg}") from exc
214214
log.debug(f"{PACKAGE_NAME} version {PACKAGE_VERSION} validate libraries done for {get_config().project_name}")
215215

216216
def teardown(self):
@@ -260,22 +260,22 @@ def make(
260260
Initialized Pipelex instance.
261261
262262
Raises:
263-
ValueError: If both relative_config_folder_path and absolute_config_folder_path are provided.
264-
RuntimeError: If frame inspection fails when using relative paths with from_file=True.
263+
PipelexSetupError: If both relative_config_folder_path and absolute_config_folder_path are provided.
264+
Or if frame inspection fails when using relative paths with from_file=True.
265265
266266
Note:
267267
If neither path is provided, defaults to "./pipelex_libraries".
268268
"""
269269
if relative_config_folder_path is not None and absolute_config_folder_path is not None:
270-
raise ValueError("Cannot specify both relative_config_folder_path and absolute_config_folder_path")
270+
raise PipelexSetupError("Cannot specify both relative_config_folder_path and absolute_config_folder_path")
271271

272272
if relative_config_folder_path is not None:
273273
if from_file:
274274
current_frame = inspect.currentframe()
275275
if current_frame is None:
276-
raise RuntimeError("Failed to get current frame")
276+
raise PipelexSetupError("Could not find relative config folder path because of: Failed to get current frame")
277277
if current_frame.f_back is None:
278-
raise RuntimeError("Failed to get caller frame")
278+
raise PipelexSetupError("Could not find relative config folder path because of: Failed to get caller frame")
279279
caller_file = current_frame.f_back.f_code.co_filename
280280
caller_dir = os.path.dirname(os.path.abspath(caller_file))
281281
config_folder_path = os.path.abspath(os.path.join(caller_dir, relative_config_folder_path))

0 commit comments

Comments
 (0)