Skip to content

Use of proxies kwarg in httpx==0.28.0 #1902

@DJRHails

Description

@DJRHails

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

httpx version 0.28.0 removes the deprecated proxies argument; this argument is hardcoded in the library at the moment.

To Reproduce

  1. Update to httpx version 0.28.0

Code snippets

  File "/var/lang/lib/python3.10/site-packages/openai/_client.py", line 337, in __init__
    super().__init__(
  File "/var/lang/lib/python3.10/site-packages/openai/_base_client.py", line 1438, in __init__
    self._client = http_client or AsyncHttpxClientWrapper(
  File "/var/lang/lib/python3.10/site-packages/openai/_base_client.py", line 1335, in __init__
    super().__init__(**kwargs)
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies'

OS

macOS

Python version

Python 3.10.12

Library version

openai-1.55.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions