Skip to content

Anthropic models fail on empty directories #34

Description

@alexandriax

When running with an anthropic model in an empty directory, the follow error is emitted:

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

An error occurred: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must be non-empty"}}

This error does not occur with the same prompt in the same directory with openai

Tested using anthropic/claude-3-5-sonnet-20240620 and openai/gpt-4o

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions