Skip to content

[🐛 Bug]: Indentation error in AnthropicProvider._query() #6462

@raghavgargUC

Description

@raghavgargUC

Describe the bug AnthropicProvider._query() has an indentation error on the client = Anthropic(...) line (6 spaces instead of 8), causing a IndentationError at import/startup time and making the provider completely unusable.

To Reproduce

Add an Anthropic provider via the Keep UI or run the provider directly.
Attempt any query — e.g., provider.query(prompt="...").
Python raises IndentationError: unexpected indent when loading anthropic_provider.py.
Expected behavior The AnthropicProvider._query() method should be importable and callable without any syntax or indentation errors.

Screenshots N/A

Additional context

Affected file: keep/providers/anthropic_provider/anthropic_provider.py, line 93.
The client = Anthropic(api_key=self.authentication_config.api_key) line inside _query was indented with 6 spaces instead of the required 8, breaking Python's consistent-indentation requirement.
Fix: change the indentation of that line to 8 spaces (consistent with the rest of the method body).

#6463

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingProviderProviders related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions