Skip to content

[Bug] Breaking httpx version #1906

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

Closed
wants to merge 3 commits into from
Closed

Conversation

sbartlett97
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Update version pin for httpx library which is breaking OpenAI api usage

Additional context & links

File "/usr/src/app/agent_executor.py", line 15, in initialise_agent_executor
     llm = ChatOpenAI(
           ^^^^^^^^^^^
   File "/usr/local/lib/python3.12/site-packages/langchain_core/load/serializable.py", line 125, in __init__
     super().__init__(*args, **kwargs)
   File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 193, in __init__
     self.__pydantic_validator__.validate_python(data, self_instance=self)
   File "/usr/local/lib/python3.12/site-packages/langchain_openai/chat_models/base.py", line 551, in validate_environment
     self.root_client = openai.OpenAI(**client_params, **sync_specific)  # type: ignore[arg-type]
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.12/site-packages/openai/_client.py", line 123, in __init__
     super().__init__(
   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 856, in __init__
     self._client = http_client or SyncHttpxClientWrapper(
                                   ^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 754, in __init__
     super().__init__(**kwargs)

@sbartlett97 sbartlett97 requested a review from a team as a code owner November 28, 2024 16:17
@dgellow
Copy link
Contributor

dgellow commented Nov 28, 2024

#1905 should fix the issue

@sbartlett97 sbartlett97 deleted the httpx-fix branch November 28, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants