Skip to content

[Bug]: Can't import litellm with latest release #2324

Description

@davidmezzetti

What happened?

Can't import litellm with latest release

Relevant log output

>>> import litellm

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/test/lib/python3.8/site-packages/litellm/__init__.py", line 590, in <module>
    from .llms.bedrock import (
  File "/tmp/test/lib/python3.8/site-packages/litellm/llms/bedrock.py", line 285, in <module>
    class AmazonMistralConfig:
  File "/tmp/test/lib/python3.8/site-packages/litellm/llms/bedrock.py", line 301, in AmazonMistralConfig
    stop: Optional[list[str]] = None
TypeError: 'type' object is not subscriptable

Twitter / LinkedIn details

No response

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