-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Mask API key for AI21 LLM #12418
Mask API key for AI21 LLM #12418
Conversation
gautamanirudh
commented
Oct 27, 2023
•
edited
Loading
edited
- Description: Added masking of the API Key for AI21 LLM when printed and improved the docstring for AI21 LLM.
- Updated the AI21 LLM to utilize SecretStr from pydantic to securely manage API key.
- Made improvements in the docstring of AI21 LLM. It now mentions that the API key can also be passed as a named parameter to the constructor.
- Added unit tests.
- Issue: For New Contributors: Use SecretStr for api_keys #12165
- Tag maintainer: @eyurtsev
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
@gautamanirudh yeah let's move to utils |
@@ -62,7 +62,7 @@ class AI21(LLM): | |||
logitBias: Optional[Dict[str, float]] = None | |||
"""Adjust the probability of specific tokens being generated.""" | |||
|
|||
ai21_api_key: Optional[str] = None | |||
ai21_api_key: Optional[SecretStr] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for the ai21_api_key to be None? It looks like after the root validator runs this always get set to a value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, ai21_api_key can never be None.
@@ -141,9 +143,10 @@ def _call( | |||
else: | |||
base_url = "https://api.ai21.com/studio/v1" | |||
params = {**self._default_params, **kwargs} | |||
self.ai21_api_key = cast(SecretStr, self.ai21_api_key) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cast probably won't be needed if the attribute is no longer an Optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, used the cast to avoid type checking, I was encountering a mypy error without it.
@@ -0,0 +1,41 @@ | |||
"""Test AI21 llm""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
Ready to merge -- we might want to update the type to be non optional later on, but not requiring changes for this PR since ti was already optional before |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [langchain](https://togithub.com/langchain-ai/langchain) | `^0.0.323` -> `^0.0.326` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/langchain/0.0.326?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/langchain/0.0.326?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/langchain/0.0.323/0.0.326?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/langchain/0.0.323/0.0.326?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [langchain](https://togithub.com/langchain-ai/langchainjs) | [`^0.0.173` -> `^0.0.176`](https://renovatebot.com/diffs/npm/langchain/0.0.173/0.0.176) | [![age](https://developer.mend.io/api/mc/badges/age/npm/langchain/0.0.176?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/langchain/0.0.176?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/langchain/0.0.173/0.0.176?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/langchain/0.0.173/0.0.176?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>langchain-ai/langchain (langchain)</summary> ### [`v0.0.326`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.0.326) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.0.325...v0.0.326) #### What's Changed - MongoDB $vectorSearch doc update by [@​prakul](https://togithub.com/prakul) in [https://github.com/langchain-ai/langchain/pull/12404](https://togithub.com/langchain-ai/langchain/pull/12404) - rfc: type LLMChain.llm as runnable by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12385](https://togithub.com/langchain-ai/langchain/pull/12385) - Update long_context_reorder.py by [@​ennio1991](https://togithub.com/ennio1991) in [https://github.com/langchain-ai/langchain/pull/12422](https://togithub.com/langchain-ai/langchain/pull/12422) - optional reusable connection by [@​theromis](https://togithub.com/theromis) in [https://github.com/langchain-ai/langchain/pull/12051](https://togithub.com/langchain-ai/langchain/pull/12051) - added rrf argument in ApproxRetrievalStrategy class **init**() by [@​HwangJohn](https://togithub.com/HwangJohn) in [https://github.com/langchain-ai/langchain/pull/11987](https://togithub.com/langchain-ai/langchain/pull/11987) - Fix Typo in clickhouse.ipynb file by [@​Uxywannasleep](https://togithub.com/Uxywannasleep) in [https://github.com/langchain-ai/langchain/pull/12429](https://togithub.com/langchain-ai/langchain/pull/12429) - cli updates oct27 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12436](https://togithub.com/langchain-ai/langchain/pull/12436) - Fix the missing temperature parameter for Baichuan-AI chat_model by [@​henter](https://togithub.com/henter) in [https://github.com/langchain-ai/langchain/pull/12420](https://togithub.com/langchain-ai/langchain/pull/12420) - make doc utils public by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12394](https://togithub.com/langchain-ai/langchain/pull/12394) - Trace if run tree set by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12444](https://togithub.com/langchain-ai/langchain/pull/12444) - AWS Bedrock RAG template by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12450](https://togithub.com/langchain-ai/langchain/pull/12450) - Update AWS Bedrock README.md by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12451](https://togithub.com/langchain-ai/langchain/pull/12451) - cli updates 2 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12447](https://togithub.com/langchain-ai/langchain/pull/12447) - Improve handling of empty queries for timescale vector by [@​cevian](https://togithub.com/cevian) in [https://github.com/langchain-ai/langchain/pull/12393](https://togithub.com/langchain-ai/langchain/pull/12393) - Add security note to API chain by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/12452](https://togithub.com/langchain-ai/langchain/pull/12452) - Bump [@​babel/traverse](https://togithub.com/babel/traverse) from 7.22.8 to 7.23.2 in /docs by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/langchain-ai/langchain/pull/12453](https://togithub.com/langchain-ai/langchain/pull/12453) - add reranking to azuresearch by [@​lawadam](https://togithub.com/lawadam) in [https://github.com/langchain-ai/langchain/pull/12454](https://togithub.com/langchain-ai/langchain/pull/12454) - Add Weaviate RAG template by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12460](https://togithub.com/langchain-ai/langchain/pull/12460) - Update SQL templates by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12464](https://togithub.com/langchain-ai/langchain/pull/12464) - Update llama.cpp and Ollama templates by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12466](https://togithub.com/langchain-ai/langchain/pull/12466) - Updated the Bedrock rag template by [@​3coins](https://togithub.com/3coins) in [https://github.com/langchain-ai/langchain/pull/12462](https://togithub.com/langchain-ai/langchain/pull/12462) - cli improvements by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12465](https://togithub.com/langchain-ai/langchain/pull/12465) - Redis langserve template by [@​tylerhutcherson](https://togithub.com/tylerhutcherson) in [https://github.com/langchain-ai/langchain/pull/12443](https://togithub.com/langchain-ai/langchain/pull/12443) - bump to 36 by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12487](https://togithub.com/langchain-ai/langchain/pull/12487) - Added a rag template for Kendra by [@​3coins](https://togithub.com/3coins) in [https://github.com/langchain-ai/langchain/pull/12470](https://togithub.com/langchain-ai/langchain/pull/12470) - Bagatur/self query doc update by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12461](https://togithub.com/langchain-ai/langchain/pull/12461) - Harrison/quick start by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12491](https://togithub.com/langchain-ai/langchain/pull/12491) - Sphinxbio nls/add plate chain template by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12502](https://togithub.com/langchain-ai/langchain/pull/12502) - Update tool.py by [@​0xC9](https://togithub.com/0xC9) in [https://github.com/langchain-ai/langchain/pull/12472](https://togithub.com/langchain-ai/langchain/pull/12472) - add gha for cli by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12492](https://togithub.com/langchain-ai/langchain/pull/12492) - add cookbook for selectins llms based on context length by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12486](https://togithub.com/langchain-ai/langchain/pull/12486) - various templates improvements by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12500](https://togithub.com/langchain-ai/langchain/pull/12500) - Evaluation Callback Multi Response by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12505](https://togithub.com/langchain-ai/langchain/pull/12505) - Patch forward ref bug by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12508](https://togithub.com/langchain-ai/langchain/pull/12508) - OpenAI runnable constructor by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12455](https://togithub.com/langchain-ai/langchain/pull/12455) - `_dalle_image_url` returns list of urls if n>1 by [@​silvhua](https://togithub.com/silvhua) in [https://github.com/langchain-ai/langchain/pull/11800](https://togithub.com/langchain-ai/langchain/pull/11800) - docs(prompt_templates): fix typo in prompt template by [@​nbbaier](https://togithub.com/nbbaier) in [https://github.com/langchain-ai/langchain/pull/12497](https://togithub.com/langchain-ai/langchain/pull/12497) - Mask API key for AI21 LLM by [@​gautamanirudh](https://togithub.com/gautamanirudh) in [https://github.com/langchain-ai/langchain/pull/12418](https://togithub.com/langchain-ai/langchain/pull/12418) - Harrison/add descriptions by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12522](https://togithub.com/langchain-ai/langchain/pull/12522) - notebook fmt by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12498](https://togithub.com/langchain-ai/langchain/pull/12498) - Bagatur/fix doc ci by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12529](https://togithub.com/langchain-ai/langchain/pull/12529) - update contributing by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12532](https://togithub.com/langchain-ai/langchain/pull/12532) - Add unit tests for document_transformers/beautiful_soup_transformer.py by [@​petervandenabeele](https://togithub.com/petervandenabeele) in [https://github.com/langchain-ai/langchain/pull/12520](https://togithub.com/langchain-ai/langchain/pull/12520) - More comprehensive readthedocs document loader by [@​adrwz](https://togithub.com/adrwz) in [https://github.com/langchain-ai/langchain/pull/12382](https://togithub.com/langchain-ai/langchain/pull/12382) - Masking of API Key for GooseAI LLM by [@​samadkoita](https://togithub.com/samadkoita) in [https://github.com/langchain-ai/langchain/pull/12496](https://togithub.com/langchain-ai/langchain/pull/12496) - feat: Add Google Cloud Translation document transformer by [@​holtskinner](https://togithub.com/holtskinner) in [https://github.com/langchain-ai/langchain/pull/12433](https://togithub.com/langchain-ai/langchain/pull/12433) - goog translate nb formatting by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12534](https://togithub.com/langchain-ai/langchain/pull/12534) - Update neo4j template readmes by [@​tomasonjo](https://togithub.com/tomasonjo) in [https://github.com/langchain-ai/langchain/pull/12540](https://togithub.com/langchain-ai/langchain/pull/12540) - Allow astream_log to be used inside atrace_as_chain_group by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/12558](https://togithub.com/langchain-ai/langchain/pull/12558) - Image Caption accepts bytes for images by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/12561](https://togithub.com/langchain-ai/langchain/pull/12561) - bump 326 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12569](https://togithub.com/langchain-ai/langchain/pull/12569) #### New Contributors - [@​ennio1991](https://togithub.com/ennio1991) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12422](https://togithub.com/langchain-ai/langchain/pull/12422) - [@​theromis](https://togithub.com/theromis) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12051](https://togithub.com/langchain-ai/langchain/pull/12051) - [@​HwangJohn](https://togithub.com/HwangJohn) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11987](https://togithub.com/langchain-ai/langchain/pull/11987) - [@​Uxywannasleep](https://togithub.com/Uxywannasleep) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12429](https://togithub.com/langchain-ai/langchain/pull/12429) - [@​henter](https://togithub.com/henter) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12420](https://togithub.com/langchain-ai/langchain/pull/12420) - [@​dependabot](https://togithub.com/dependabot) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12453](https://togithub.com/langchain-ai/langchain/pull/12453) - [@​lawadam](https://togithub.com/lawadam) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12454](https://togithub.com/langchain-ai/langchain/pull/12454) - [@​0xC9](https://togithub.com/0xC9) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12472](https://togithub.com/langchain-ai/langchain/pull/12472) - [@​silvhua](https://togithub.com/silvhua) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11800](https://togithub.com/langchain-ai/langchain/pull/11800) - [@​nbbaier](https://togithub.com/nbbaier) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12497](https://togithub.com/langchain-ai/langchain/pull/12497) - [@​gautamanirudh](https://togithub.com/gautamanirudh) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12418](https://togithub.com/langchain-ai/langchain/pull/12418) - [@​petervandenabeele](https://togithub.com/petervandenabeele) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12520](https://togithub.com/langchain-ai/langchain/pull/12520) - [@​adrwz](https://togithub.com/adrwz) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12382](https://togithub.com/langchain-ai/langchain/pull/12382) - [@​samadkoita](https://togithub.com/samadkoita) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12496](https://togithub.com/langchain-ai/langchain/pull/12496) **Full Changelog**: langchain-ai/langchain@v0.0.325...v0.0.326 ### [`v0.0.325`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.0.325) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.0.324...v0.0.325) #### What's Changed - Add template for Pinecone + Multi-Query by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12353](https://togithub.com/langchain-ai/langchain/pull/12353) - Docs: Add lcel to combine_docs chains by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12310](https://togithub.com/langchain-ai/langchain/pull/12310) - Update multi query template README, ntbk by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12356](https://togithub.com/langchain-ai/langchain/pull/12356) - langserve doc by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12357](https://togithub.com/langchain-ai/langchain/pull/12357) - E2B tool - Improve description wuth uploaded files info by [@​jakubno](https://togithub.com/jakubno) in [https://github.com/langchain-ai/langchain/pull/12355](https://togithub.com/langchain-ai/langchain/pull/12355) - Fix redis vectorfield schema defaults by [@​tylerhutcherson](https://togithub.com/tylerhutcherson) in [https://github.com/langchain-ai/langchain/pull/12223](https://togithub.com/langchain-ai/langchain/pull/12223) - update chains how to by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12362](https://togithub.com/langchain-ai/langchain/pull/12362) - Support Fireworks batching ([#​8](https://togithub.com/langchain-ai/langchain/issues/8)) by [@​ZixinYang](https://togithub.com/ZixinYang) in [https://github.com/langchain-ai/langchain/pull/12052](https://togithub.com/langchain-ai/langchain/pull/12052) - fix some stuff by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12292](https://togithub.com/langchain-ai/langchain/pull/12292) - Harrison/improve cli by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12368](https://togithub.com/langchain-ai/langchain/pull/12368) - Adds linter in templates by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/12321](https://togithub.com/langchain-ai/langchain/pull/12321) - Fix langsmith walkthrough doc dataset by [@​lucasc896](https://togithub.com/lucasc896) in [https://github.com/langchain-ai/langchain/pull/12027](https://togithub.com/langchain-ai/langchain/pull/12027) - Mention other function calling/grammar support by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12369](https://togithub.com/langchain-ai/langchain/pull/12369) - rm init by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12374](https://togithub.com/langchain-ai/langchain/pull/12374) - Fix SupbaseVectoreStore write operation timeout by [@​j1philli](https://togithub.com/j1philli) in [https://github.com/langchain-ai/langchain/pull/12318](https://togithub.com/langchain-ai/langchain/pull/12318) - fireworks scheduled integration tests by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12373](https://togithub.com/langchain-ai/langchain/pull/12373) - Cohere re-rank template by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12378](https://togithub.com/langchain-ai/langchain/pull/12378) - cli fix by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12380](https://togithub.com/langchain-ai/langchain/pull/12380) - better lint triggering by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12376](https://togithub.com/langchain-ai/langchain/pull/12376) - Minor updates to ReRank template by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12388](https://togithub.com/langchain-ai/langchain/pull/12388) - Update broken redis tests by [@​tylerhutcherson](https://togithub.com/tylerhutcherson) in [https://github.com/langchain-ai/langchain/pull/12371](https://togithub.com/langchain-ai/langchain/pull/12371) - CLI CI 2 by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12387](https://togithub.com/langchain-ai/langchain/pull/12387) - add template for hyde by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12390](https://togithub.com/langchain-ai/langchain/pull/12390) - Wfh/json edit dist by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12361](https://togithub.com/langchain-ai/langchain/pull/12361) - Fixed some grammatical and Exception types issues by [@​ShorthillsAI](https://togithub.com/ShorthillsAI) in [https://github.com/langchain-ai/langchain/pull/12015](https://togithub.com/langchain-ai/langchain/pull/12015) - Format Templates by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12396](https://togithub.com/langchain-ai/langchain/pull/12396) - Add HTML Title and Page Language into metadata for AsyncHtmlLoader by [@​kkk55596](https://togithub.com/kkk55596) in [https://github.com/langchain-ai/langchain/pull/11326](https://togithub.com/langchain-ai/langchain/pull/11326) - johnsnowlabs embeddings support by [@​C-K-Loan](https://togithub.com/C-K-Loan) in [https://github.com/langchain-ai/langchain/pull/11271](https://togithub.com/langchain-ai/langchain/pull/11271) - Templates CI by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12313](https://togithub.com/langchain-ai/langchain/pull/12313) - Wfh/json schema evaluation by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12389](https://togithub.com/langchain-ai/langchain/pull/12389) - Add space by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12395](https://togithub.com/langchain-ai/langchain/pull/12395) - Str Evaluator Mapper by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12401](https://togithub.com/langchain-ai/langchain/pull/12401) - Clean-up template READMEs by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12403](https://togithub.com/langchain-ai/langchain/pull/12403) - Mask API key for Aleph Alpha LLM by [@​slangenbach](https://togithub.com/slangenbach) in [https://github.com/langchain-ai/langchain/pull/12377](https://togithub.com/langchain-ai/langchain/pull/12377) - fix(openai-callback): completion count logic by [@​mspronesti](https://togithub.com/mspronesti) in [https://github.com/langchain-ai/langchain/pull/12383](https://togithub.com/langchain-ai/langchain/pull/12383) - Fix templates typos by [@​dqbd](https://togithub.com/dqbd) in [https://github.com/langchain-ai/langchain/pull/12428](https://togithub.com/langchain-ai/langchain/pull/12428) - feat: Add Google Speech to Text API Document Loader by [@​holtskinner](https://togithub.com/holtskinner) in [https://github.com/langchain-ai/langchain/pull/12298](https://togithub.com/langchain-ai/langchain/pull/12298) - LLaMA2 with JSON schema support template by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12435](https://togithub.com/langchain-ai/langchain/pull/12435) - clean up deprecated agents by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12231](https://togithub.com/langchain-ai/langchain/pull/12231) - Add invoke example to LLaMA2 function template notebook by [@​rlancemartin](https://togithub.com/rlancemartin) in [https://github.com/langchain-ai/langchain/pull/12437](https://togithub.com/langchain-ai/langchain/pull/12437) - Deprecate PythonRepl tools and Pandas/Xorbits/Spark DataFrame/Python/CSV agents by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/12427](https://togithub.com/langchain-ai/langchain/pull/12427) - Bagatur/bump 325 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12440](https://togithub.com/langchain-ai/langchain/pull/12440) #### New Contributors - [@​jakubno](https://togithub.com/jakubno) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12355](https://togithub.com/langchain-ai/langchain/pull/12355) - [@​lucasc896](https://togithub.com/lucasc896) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12027](https://togithub.com/langchain-ai/langchain/pull/12027) - [@​kkk55596](https://togithub.com/kkk55596) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11326](https://togithub.com/langchain-ai/langchain/pull/11326) - [@​C-K-Loan](https://togithub.com/C-K-Loan) made their first contribution in [https://github.com/langchain-ai/langchain/pull/11271](https://togithub.com/langchain-ai/langchain/pull/11271) - [@​slangenbach](https://togithub.com/slangenbach) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12377](https://togithub.com/langchain-ai/langchain/pull/12377) #### CVEs CVE-2023-39659 resolved in [https://github.com/langchain-ai/langchain/pull/12427](https://togithub.com/langchain-ai/langchain/pull/12427) **Full Changelog**: langchain-ai/langchain@v0.0.324...v0.0.325 ### [`v0.0.324`](https://togithub.com/langchain-ai/langchain/releases/tag/v0.0.324) [Compare Source](https://togithub.com/langchain-ai/langchain/compare/v0.0.323...v0.0.324) #### What's Changed - Pop max concurrency when recursing by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/12281](https://togithub.com/langchain-ai/langchain/pull/12281) - Remove CLI by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/12283](https://togithub.com/langchain-ai/langchain/pull/12283) - CohereEmbeddings: Add max_retries and request_timeout by [@​ephe-meral](https://togithub.com/ephe-meral) in [https://github.com/langchain-ai/langchain/pull/12275](https://togithub.com/langchain-ai/langchain/pull/12275) - response parser for ArceeRetriever by [@​EricLiclair](https://togithub.com/EricLiclair) in [https://github.com/langchain-ai/langchain/pull/12270](https://togithub.com/langchain-ai/langchain/pull/12270) - CLI by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12284](https://togithub.com/langchain-ai/langchain/pull/12284) - chat loader doc titles by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12289](https://togithub.com/langchain-ai/langchain/pull/12289) - Update vectorstore.mdx\[Make an improvement] by [@​SilvaXiang](https://togithub.com/SilvaXiang) in [https://github.com/langchain-ai/langchain/pull/12252](https://togithub.com/langchain-ai/langchain/pull/12252) - rm .html from local doc links by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12293](https://togithub.com/langchain-ai/langchain/pull/12293) - dev guide by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12291](https://togithub.com/langchain-ai/langchain/pull/12291) - Update README.md by [@​RS-labhub](https://togithub.com/RS-labhub) in [https://github.com/langchain-ai/langchain/pull/12286](https://togithub.com/langchain-ai/langchain/pull/12286) - Strips leading/trailing whitespace before parsing xml by [@​donatoaz](https://togithub.com/donatoaz) in [https://github.com/langchain-ai/langchain/pull/12297](https://togithub.com/langchain-ai/langchain/pull/12297) - fix sparql queries for relations in schema description by [@​felixocker](https://togithub.com/felixocker) in [https://github.com/langchain-ai/langchain/pull/9136](https://togithub.com/langchain-ai/langchain/pull/9136) - use snippet search optionally by [@​sam-h-bean](https://togithub.com/sam-h-bean) in [https://github.com/langchain-ai/langchain/pull/12236](https://togithub.com/langchain-ai/langchain/pull/12236) - Add baidu cloud vector search in vectorstore and fix some unit test in vectorstores by [@​wemysschen](https://togithub.com/wemysschen) in [https://github.com/langchain-ai/langchain/pull/11605](https://togithub.com/langchain-ai/langchain/pull/11605) - Rm langchain server by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12305](https://togithub.com/langchain-ai/langchain/pull/12305) - Relax type annotation for custom input/output types by [@​eyurtsev](https://togithub.com/eyurtsev) in [https://github.com/langchain-ai/langchain/pull/12300](https://togithub.com/langchain-ai/langchain/pull/12300) - Better wrap traceable by [@​hinthornw](https://togithub.com/hinthornw) in [https://github.com/langchain-ai/langchain/pull/12303](https://togithub.com/langchain-ai/langchain/pull/12303) - CLI Git Improvements by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12311](https://togithub.com/langchain-ai/langchain/pull/12311) - Templates by [@​efriis](https://togithub.com/efriis) in [https://github.com/langchain-ai/langchain/pull/12294](https://togithub.com/langchain-ai/langchain/pull/12294) - removed CardLists for LLMs and ChatModels by [@​leo-gan](https://togithub.com/leo-gan) in [https://github.com/langchain-ai/langchain/pull/12307](https://togithub.com/langchain-ai/langchain/pull/12307) - Allow index name customization via env var in rag-conversation by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchain/pull/12315](https://togithub.com/langchain-ai/langchain/pull/12315) - add docs for templates by [@​hwchase17](https://togithub.com/hwchase17) in [https://github.com/langchain-ai/langchain/pull/12346](https://togithub.com/langchain-ai/langchain/pull/12346) - e2b tool - fix initialization and improve tool description by [@​mlejva](https://togithub.com/mlejva) in [https://github.com/langchain-ai/langchain/pull/12345](https://togithub.com/langchain-ai/langchain/pull/12345) - Fix Typo in CONTRIBUTING.md by [@​kishanrajput23](https://togithub.com/kishanrajput23) in [https://github.com/langchain-ai/langchain/pull/12320](https://togithub.com/langchain-ai/langchain/pull/12320) - Fix typos in quickstart.mdx by [@​LaurentAjdnik](https://togithub.com/LaurentAjdnik) in [https://github.com/langchain-ai/langchain/pull/12333](https://togithub.com/langchain-ai/langchain/pull/12333) - fix self query constructor by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12349](https://togithub.com/langchain-ai/langchain/pull/12349) - add allowed_operators property in QdrantTranslator by [@​xieqihui](https://togithub.com/xieqihui) in [https://github.com/langchain-ai/langchain/pull/12328](https://togithub.com/langchain-ai/langchain/pull/12328) - fix typo by [@​wongzc](https://togithub.com/wongzc) in [https://github.com/langchain-ai/langchain/pull/12338](https://togithub.com/langchain-ai/langchain/pull/12338) - Fix the exception from langchain.utilities import ArceeWrapper by [@​gnakw](https://togithub.com/gnakw) in [https://github.com/langchain-ai/langchain/pull/12342](https://togithub.com/langchain-ai/langchain/pull/12342) - Fix a typo in the summarization use case. by [@​season179](https://togithub.com/season179) in [https://github.com/langchain-ai/langchain/pull/12316](https://togithub.com/langchain-ai/langchain/pull/12316) - Update code_understanding.ipynb by [@​kengoodridge](https://togithub.com/kengoodridge) in [https://github.com/langchain-ai/langchain/pull/12309](https://togithub.com/langchain-ai/langchain/pull/12309) - Finetuned openai azure models cost calculation by [@​nirkopler](https://togithub.com/nirkopler) in [https://github.com/langchain-ai/langchain/pull/12267](https://togithub.com/langchain-ai/langchain/pull/12267) - fixed error message and a check for processor name by [@​lkuligin](https://togithub.com/lkuligin) in [https://github.com/langchain-ai/langchain/pull/12200](https://togithub.com/langchain-ai/langchain/pull/12200) - Takeoff pro support by [@​hoyungcher](https://togithub.com/hoyungcher) in [https://github.com/langchain-ai/langchain/pull/12070](https://togithub.com/langchain-ai/langchain/pull/12070) - Comprehend Moderation 0.2 by [@​nikhilkjha](https://togithub.com/nikhilkjha) in [https://github.com/langchain-ai/langchain/pull/11730](https://togithub.com/langchain-ai/langchain/pull/11730) - Fix json key output parser in partial (streaming) mode by [@​nfcampos](https://togithub.com/nfcampos) in [https://github.com/langchain-ai/langchain/pull/12332](https://togithub.com/langchain-ai/langchain/pull/12332) - bump 324 and 35 by [@​baskaryan](https://togithub.com/baskaryan) in [https://github.com/langchain-ai/langchain/pull/12352](https://togithub.com/langchain-ai/langchain/pull/12352) #### New Contributors - [@​SilvaXiang](https://togithub.com/SilvaXiang) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12252](https://togithub.com/langchain-ai/langchain/pull/12252) - [@​RS-labhub](https://togithub.com/RS-labhub) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12286](https://togithub.com/langchain-ai/langchain/pull/12286) - [@​donatoaz](https://togithub.com/donatoaz) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12297](https://togithub.com/langchain-ai/langchain/pull/12297) - [@​kishanrajput23](https://togithub.com/kishanrajput23) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12320](https://togithub.com/langchain-ai/langchain/pull/12320) - [@​LaurentAjdnik](https://togithub.com/LaurentAjdnik) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12333](https://togithub.com/langchain-ai/langchain/pull/12333) - [@​wongzc](https://togithub.com/wongzc) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12338](https://togithub.com/langchain-ai/langchain/pull/12338) - [@​gnakw](https://togithub.com/gnakw) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12342](https://togithub.com/langchain-ai/langchain/pull/12342) - [@​season179](https://togithub.com/season179) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12316](https://togithub.com/langchain-ai/langchain/pull/12316) - [@​kengoodridge](https://togithub.com/kengoodridge) made their first contribution in [https://github.com/langchain-ai/langchain/pull/12309](https://togithub.com/langchain-ai/langchain/pull/12309) **Full Changelog**: langchain-ai/langchain@v0.0.323...v0.0.324 </details> <details> <summary>langchain-ai/langchainjs (langchain)</summary> ### [`v0.0.176`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.0.176) [Compare Source](https://togithub.com/langchain-ai/langchainjs/compare/0.0.175...0.0.176) #### What's Changed - Release 0.0.175 by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3082](https://togithub.com/langchain-ai/langchainjs/pull/3082) - Update ollama.mdx - `numThreads` to `numThread` by [@​paulwongx](https://togithub.com/paulwongx) in [https://github.com/langchain-ai/langchainjs/pull/3083](https://togithub.com/langchain-ai/langchainjs/pull/3083) - Update RAG fusion notebook by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3095](https://togithub.com/langchain-ai/langchainjs/pull/3095) - JSON functions output parser docs by [@​bracesproul](https://togithub.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3098](https://togithub.com/langchain-ai/langchainjs/pull/3098) - Reduce max size for docs build by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3100](https://togithub.com/langchain-ai/langchainjs/pull/3100) - Implement streaming for GoogleVertexAI text and chat models by [@​afirstenberg](https://togithub.com/afirstenberg) in [https://github.com/langchain-ai/langchainjs/pull/3088](https://togithub.com/langchain-ai/langchainjs/pull/3088) - Increase docs build RAM by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3101](https://togithub.com/langchain-ai/langchainjs/pull/3101) - Jtcorrin/plan execute adjustments by [@​JTCorrin](https://togithub.com/JTCorrin) in [https://github.com/langchain-ai/langchainjs/pull/3072](https://togithub.com/langchain-ai/langchainjs/pull/3072) #### New Contributors - [@​paulwongx](https://togithub.com/paulwongx) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3083](https://togithub.com/langchain-ai/langchainjs/pull/3083) - [@​JTCorrin](https://togithub.com/JTCorrin) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3072](https://togithub.com/langchain-ai/langchainjs/pull/3072) **Full Changelog**: langchain-ai/langchainjs@0.0.175...0.0.176 ### [`v0.0.175`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.0.175) [Compare Source](https://togithub.com/langchain-ai/langchainjs/compare/0.0.174...0.0.175) #### What's Changed - Release 0.0.174 by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3064](https://togithub.com/langchain-ai/langchainjs/pull/3064) - Adds basic critique revise cookbook by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3067](https://togithub.com/langchain-ai/langchainjs/pull/3067) - fix: calculate Milvus textlength in bytes by [@​kurtmoser](https://togithub.com/kurtmoser) in [https://github.com/langchain-ai/langchainjs/pull/3079](https://togithub.com/langchain-ai/langchainjs/pull/3079) - Add Convex integration by [@​xixixao](https://togithub.com/xixixao) in [https://github.com/langchain-ai/langchainjs/pull/2977](https://togithub.com/langchain-ai/langchainjs/pull/2977) - Make "IN-filters" possible for Vercel Postgres Metadata by [@​rbouschery](https://togithub.com/rbouschery) in [https://github.com/langchain-ai/langchainjs/pull/3040](https://togithub.com/langchain-ai/langchainjs/pull/3040) - Fix Convex typo by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3081](https://togithub.com/langchain-ai/langchainjs/pull/3081) #### New Contributors - [@​kurtmoser](https://togithub.com/kurtmoser) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3079](https://togithub.com/langchain-ai/langchainjs/pull/3079) - [@​xixixao](https://togithub.com/xixixao) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/2977](https://togithub.com/langchain-ai/langchainjs/pull/2977) - [@​rbouschery](https://togithub.com/rbouschery) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3040](https://togithub.com/langchain-ai/langchainjs/pull/3040) **Full Changelog**: langchain-ai/langchainjs@0.0.174...0.0.175 ### [`v0.0.174`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.0.174) [Compare Source](https://togithub.com/langchain-ai/langchainjs/compare/0.0.173...0.0.174) #### What's Changed - Release 0.0.173 by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3054](https://togithub.com/langchain-ai/langchainjs/pull/3054) - fix: LANGCHAIN_VERBOSE=false does not turn off verbose logging. by [@​xianminx](https://togithub.com/xianminx) in [https://github.com/langchain-ai/langchainjs/pull/3057](https://togithub.com/langchain-ai/langchainjs/pull/3057) - Format by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3058](https://togithub.com/langchain-ai/langchainjs/pull/3058) - fix: improper markdown links by [@​bracesproul](https://togithub.com/bracesproul) in [https://github.com/langchain-ai/langchainjs/pull/3061](https://togithub.com/langchain-ai/langchainjs/pull/3061) - Adds MMR search for Pinecone by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3059](https://togithub.com/langchain-ai/langchainjs/pull/3059) - Allow vectorstore retrievers in SemanticSimilarityExampleSelector.ts by [@​jacoblee93](https://togithub.com/jacoblee93) in [https://github.com/langchain-ai/langchainjs/pull/3056](https://togithub.com/langchain-ai/langchainjs/pull/3056) - Add getOutputValue to langchain/memory exports by [@​mattmcgiv](https://togithub.com/mattmcgiv) in [https://github.com/langchain-ai/langchainjs/pull/3060](https://togithub.com/langchain-ai/langchainjs/pull/3060) #### New Contributors - [@​xianminx](https://togithub.com/xianminx) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3057](https://togithub.com/langchain-ai/langchainjs/pull/3057) - [@​mattmcgiv](https://togithub.com/mattmcgiv) made their first contribution in [https://github.com/langchain-ai/langchainjs/pull/3060](https://togithub.com/langchain-ai/langchainjs/pull/3060) **Full Changelog**: langchain-ai/langchainjs@0.0.173...0.0.174 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/autoblocksai/autoblocks-examples). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- **Description:** Added masking of the API Key for AI21 LLM when printed and improved the docstring for AI21 LLM. - Updated the AI21 LLM to utilize SecretStr from pydantic to securely manage API key. - Made improvements in the docstring of AI21 LLM. It now mentions that the API key can also be passed as a named parameter to the constructor. - Added unit tests. - **Issue:** langchain-ai#12165 - **Tag maintainer:** @eyurtsev --------- Co-authored-by: Anirudh Gautam <[email protected]>
- **Description:** Added masking for the API key for Minimax LLM + tests inspired by #12418. - **Issue:** the issue # fixes #12165 - **Dependencies:** this fix is dependent on Minimax instantiation fix which is introduced in #13439, so merge this one after. - **Tag maintainer:** @eyurtsev --------- Co-authored-by: Harrison Chase <[email protected]>
- **Description:** Added masking for the API key for Minimax LLM + tests inspired by langchain-ai#12418. - **Issue:** the issue # fixes langchain-ai#12165 - **Dependencies:** this fix is dependent on Minimax instantiation fix which is introduced in langchain-ai#13439, so merge this one after. - **Tag maintainer:** @eyurtsev --------- Co-authored-by: Harrison Chase <[email protected]>
- **Description:** Added masking of the API Key for AI21 LLM when printed and improved the docstring for AI21 LLM. - Updated the AI21 LLM to utilize SecretStr from pydantic to securely manage API key. - Made improvements in the docstring of AI21 LLM. It now mentions that the API key can also be passed as a named parameter to the constructor. - Added unit tests. - **Issue:** langchain-ai#12165 - **Tag maintainer:** @eyurtsev --------- Co-authored-by: Anirudh Gautam <[email protected]>
**Description:** Masking of the API key for AI21 models **Issue:** Fixes #12165 for AI21 **Dependencies:** None Note: This fix came in originally through #12418 but was possibly missed in the refactor to the AI21 partner package --------- Co-authored-by: Erick Friis <[email protected]>
**Description:** Masking of the API key for AI21 models **Issue:** Fixes #12165 for AI21 **Dependencies:** None Note: This fix came in originally through #12418 but was possibly missed in the refactor to the AI21 partner package --------- Co-authored-by: Erick Friis <[email protected]>