-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Client.__init__() got an unexpected keyword argument 'proxies' #709
Comments
https://github.com/encode/httpx/releases/tag/0.28.0 says:
I'm not using that myself, maybe the test framework is? Upgrading to |
This is hard to debug because the exception is being swallowed somewhere and turned into a system exit. |
This change helps with debugging: diff --git a/llm/cli.py b/llm/cli.py
index 86954ab..b577b9b 100644
--- a/llm/cli.py
+++ b/llm/cli.py
@@ -450,7 +450,12 @@ def prompt(
if extract:
text = extract_first_fenced_code_block(text) or text
print(text)
+ except ValueError as ex:
+ raise click.ClickException(str(ex))
except Exception as ex:
+ # Other exceptions should raise in pytest
+ if getattr(sys, "_called_from_test", False):
+ raise
raise click.ClickException(str(ex))
if isinstance(response, AsyncResponse): |
Got me this traceback, maybe the problem is in the
|
I upgraded my local environment from |
... that other test failure was because of my new debugging code. The solution here is to upgrade |
Here's where OpenAI fixed this problem: |
And they shipped the release here: So depending on |
Found this pattern while working on #709
Getting this error from the test suite, but only if I upgrade
httpx
to 0.28.1.The text was updated successfully, but these errors were encountered: