Skip to content

Module 06-text-generation-apps fails to run locally due to version incompatibility #883

@bravespirit84

Description

@bravespirit84

Describe the bug
Current version of Module 06-text-generation-apps fails to run with error "TypeError: Client.init() got an unexpected keyword argument 'proxies'"

To Reproduce
Steps to reproduce the behavior:
Execute aoai-app.py with local Python w/ Virtual Environment

Expected behavior
Execution of the Python script should return a beautiful story

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Win11
  • Browser: N/A
  • Version: N/A

Smartphone (please complete the following information):
N/A

Additional context
The issue is a compatibility problem between the newer versions of the OpenAI library (1.55.1) and the httpx library (0.28.1). By downgrading both libraries to compatible versions (OpenAI 1.40.6 and httpx 0.24.1), the script now runs successfully.

See attached log: first execution is vanilla (per lesson), then steps to downgrade incompatible modules, then last execution shows the correct behavior (and problem solved).

error-log.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions