Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Lab 1 and 2 (use your own data) Python code broken. #113

@verwijnen

Description

@verwijnen

The old openai client uses a deprecated parameter for httpx. Either pin the httpx version or upgrade the openai client.

Error:

AsyncClient.__init__() got an unexpected keyword argument 'proxies'
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<AsyncClient.aclose() done, defined at C:\Users\Student\miniconda3\Lib\site-packages\httpx\_client.py:1978> exception=AttributeError("'AsyncHttpxClientWrapper' object has no attribute '_state'")>
Traceback (most recent call last):
  File "C:\Users\Student\miniconda3\Lib\site-packages\httpx\_client.py", line 1982, in aclose
    if self._state != ClientState.CLOSED:
       ^^^^^^^^^^^
AttributeError: 'AsyncHttpxClientWrapper' object has no attribute '_state'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions