Conversation
…inned httpx library version
httpx library broke its interface over time and it was not pinned in setup.py deps list. Fix is to pin it to compatible version.
Original crash was:
File "/Users/vitaly/work/oss-contributions/ps-fuzz/venv/bin/prompt-security-fuzzer", line 8, in <module>
sys.exit(main())
File "/Users/vitaly/work/oss-contributions/ps-fuzz/ps_fuzz/cli.py", line 65, in main
interactive_shell(app_config)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/ps_fuzz/interactive_mode.py", line 153, in interactive_shell
stage = stage.show(state)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/ps_fuzz/interactive_mode.py", line 69, in show
if func: func(state)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/ps_fuzz/prompt_injection_fuzzer.py", line 177, in run_fuzzer
target_client = ClientLangChain(app_config.target_provider, model=app_config.target_model, temperature=0)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/ps_fuzz/chat_clients.py", line 38, in __init__
self.client = chat_models_info[backend].model_cls(**kwargs)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/venv/lib/python3.13/site-packages/langchain_core/load/serializable.py", line 107, in __init__
super().__init__(**kwargs)
File "/Users/vitaly/work/oss-contributions/ps-fuzz/venv/lib/python3.13/site-packages/pydantic/v1/main.py", line 352, in __init__
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
__root__
Client.__init__() got an unexpected keyword argument 'proxies' (type=type_error)
davidm-ps
approved these changes
Jun 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug description
The
httpxlibrary's interface broke over time, and it was not pinned in the setup.py dependencies list.The fix
The fix is to pin it to a compatible version.
Original crash was:
The fix is to pin the httpx version in
setup.py.