Skip to content

[Bug]: UnicodeDecodeError when importing litellm_model on Windows #610

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

Open
Hamzah-syed opened this issue Apr 26, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Hamzah-syed
Copy link

  • Have you read the docs?Agents SDK docs: Yes
  • Have you searched for related issues? Others may have faced similar issues.: Yes, no similar issues found.

Describe the bug

When importing litellm_model from agents.extensions.models, a UnicodeDecodeError occurs on Windows systems.

Debug information

Agents SDK version: 0.0.13
Python version: 3.11
Operating System: Windows 11
Package manager: UV

Repro steps

  1. pip install openai-agents[litellm]
  2. from agents.extensions.models import litellm_model
  3. uv run main.py

Image

@Hamzah-syed Hamzah-syed added the bug Something isn't working label Apr 26, 2025
@Hamzah-syed Hamzah-syed changed the title UnicodeDecodeError when importing litellm_model on Windows [Bug]:UnicodeDecodeError when importing litellm_model on Windows Apr 26, 2025
@Hamzah-syed Hamzah-syed changed the title [Bug]:UnicodeDecodeError when importing litellm_model on Windows [Bug]: UnicodeDecodeError when importing litellm_model on Windows Apr 26, 2025
@MoosaAfzal2
Copy link

Encountering same error on windows 10 with sdk version 0.0.13 and python version 3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants