Skip to content
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

Does not recognize signature of langchain_aws.ChatBedrock #947

Open
undera opened this issue Jun 11, 2024 · 0 comments
Open

Does not recognize signature of langchain_aws.ChatBedrock #947

undera opened this issue Jun 11, 2024 · 0 comments

Comments

@undera
Copy link

undera commented Jun 11, 2024

Describe the bug
It does not recognize the signature in following snippet:

from langchain_aws import ChatBedrock

llm = ChatBedrock(
    model_id="model-id-does-not-matter",
    model_kwargs={
        "temperature": 0,
        "max_tokens": 500,
    },
)

To Reproduce
Steps to reproduce the behavior:

  1. Create a file in IDE
  2. Observe the red lines and missing parameter complaints

Expected behavior
The code is fine, class hierarchy contains the model_id and model_kwargs parameters. Should be no complaint at all.

Environments (please complete the following information):

  • IDE: IntelliJ IDEA 2024.1.3 (Ultimate Edition)
  • OS:. Kubuntu 24.04
  • Pydantic Version: 2.7.1
  • Plugin version: 0.4.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant