You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/tests/integration_tests
Ankush Gola a9246333fd
fix anthropic chat model mutating input list (#6457)
<!--
Thank you for contributing to LangChain! Your PR will appear in our
release under the title you set. Please make sure it highlights your
valuable contribution.

Replace this with a description of the change, the issue it fixes (if
applicable), and relevant context. List any dependencies required for
this change.

After you're done, someone will review your PR. They may suggest
improvements. If no one reviews your PR within a few days, feel free to
@-mention the same people again, as notifications can get lost.

Finally, we'd love to show appreciation for your contribution - if you'd
like us to shout you out on Twitter, please also include your handle!
-->

<!-- Remove if not applicable -->

Fixes: ChatAnthropic was mutating the input message list during
formatting which isn't ideal bc you could be changing the behavior for
other chat models when using the same input

#### Before submitting

<!-- If you're adding a new integration, please include:

1. a test for the integration - favor unit tests that does not rely on
network access.
2. an example notebook showing its use


See contribution guidelines for more information on how to write tests,
lint
etc:


https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
-->

#### Who can review?

Tag maintainers/contributors who might be interested:
1 year ago
..
agent Add Multi-CSV/DF support in CSV and DataFrame Toolkits (#5009) 1 year ago
cache feat: add Momento as a standard cache and chat message history provider (#5221) 1 year ago
callbacks Add support for tags (#5898) 1 year ago
chains Add option to save/load graph cypher QA (#6219) 1 year ago
chat_models fix anthropic chat model mutating input list (#6457) 1 year ago
document_loaders Add embaas document extraction api endpoints (#6048) 1 year ago
embeddings add dashscope text embedding (#5929) 1 year ago
examples feat: Add `UnstructuredXMLLoader` for `.xml` files (#5955) 1 year ago
llms Baseten integration (#5862) 1 year ago
memory feat: add Momento as a standard cache and chat message history provider (#5221) 1 year ago
prompts Cleanup integration test dir (#3308) 1 year ago
retrievers DocArray as a Retriever (#6031) 1 year ago
utilities ArxivAPIWrapper - doc_content_chars_max (#6063) 1 year ago
vectorstores Fix integration tests for Faiss vector store (#6281) 1 year ago
.env.example adding MongoDBAtlasVectorSearch (#5338) 1 year ago
__init__.py initial commit 2 years ago
conftest.py feat: improve pinecone tests (#2806) 1 year ago
test_document_transformers.py Contextual compression retriever (#2915) 1 year ago
test_nebulagraph.py Harrison/nebula graph (#5865) 1 year ago
test_nlp_text_splitters.py OptimizedPrompt -- k-shot example choice backed by semantic search (#91) 2 years ago
test_pdf_pagesplitter.py cleanup: unify 3 different pdf loaders, rename PagedPDFSplitter (#1615) 2 years ago
test_schema.py Add 'get_token_ids' method (#4784) 1 year ago
test_text_splitter.py chore: spedd up integration test by using smaller model (#6044) 1 year ago