Skip to content

Commit fff44dd

Browse files
ebowwaclaude
andcommitted
fix: OpenAI provider system_instruction parameter error (Issue #32)
- Fixed OpenAI provider failing with 'unexpected keyword argument system_instruction' - Added parameter filtering to exclude Gemini-specific params (system_instruction, safety_settings) - Ensures cross-provider compatibility when using unified CompletionClient - Added test case to verify the fix works correctly - Bumped version to 0.4.2 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cb1d723 commit fff44dd

7 files changed

Lines changed: 539 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.4.2] - 2025-08-21
4+
### Fixed
5+
- Fixed OpenAI provider error with 'system_instruction' parameter (Issue #32)
6+
- OpenAI provider now properly filters out Gemini-specific parameters
7+
- Added parameter exclusion for 'system_instruction' and 'safety_settings'
8+
- Ensures cross-provider compatibility when using unified CompletionClient
9+
310
## [0.4.1] - 2025-08-19
411
### Changed
512
- **BREAKING**: Image generation now requires explicit model selection

0 commit comments

Comments
 (0)