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/libs/community/langchain_community/utilities
Eun Hye Kim 70761af8cf
community: Fix #22975 (Add SSL Verification Option to Requests Class in langchain_community) (#22977)
- **PR title**: "community: Fix #22975 (Add SSL Verification Option to
Requests Class in langchain_community)"
- **PR message**: 
    - **Description:**
- Added an optional verify parameter to the Requests class with a
default value of True.
- Modified the get, post, patch, put, and delete methods to include the
verify parameter.
- Updated the _arequest async context manager to include the verify
parameter.
- Added the verify parameter to the GenericRequestsWrapper class and
passed it to the Requests class.
    - **Issue:** This PR fixes issue #22975.
- **Dependencies:** No additional dependencies are required for this
change.
    - **Twitter handle:** @lunara_x

You can check this change with below code.
```python
from langchain_openai.chat_models import ChatOpenAI
from langchain.requests import RequestsWrapper
from langchain_community.agent_toolkits.openapi import planner
from langchain_community.agent_toolkits.openapi.spec import reduce_openapi_spec

with open("swagger.yaml") as f:
    data = yaml.load(f, Loader=yaml.FullLoader)
swagger_api_spec = reduce_openapi_spec(data)

llm = ChatOpenAI(model='gpt-4o')
swagger_requests_wrapper = RequestsWrapper(verify=False) # modified point
superset_agent = planner.create_openapi_agent(swagger_api_spec, swagger_requests_wrapper, llm, allow_dangerous_requests=True, handle_parsing_errors=True)

superset_agent.run(
    "Tell me the number and types of charts and dashboards available."
)
```

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2 weeks ago
..
__init__.py community[major], experimental[patch]: Remove Python REPL from community (#22904) 2 weeks ago
alpha_vantage.py community[minor]: Add Alpha Vantage API Tool (#14332) 3 months ago
anthropic.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
apify.py community: fix missing `apify_api_token` field in ApifyWrapper (#22421) 4 weeks ago
arcee.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
arxiv.py infra: rm unused # noqa violations (#22049) 1 month ago
asknews.py community[minor]: add AskNews retriever and AskNews tool (#21581) 1 month ago
astradb.py community[patch]: docstrings update (#20301) 3 months ago
awslambda.py infra: rm unused # noqa violations (#22049) 1 month ago
bibtex.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
bing_search.py docs: clean up link to bing search (#21825) 2 months ago
brave_search.py infra: add -p to mkdir in lint steps (#17013) 5 months ago
cassandra.py community[minor]: Add Cassandra ByteStore (#22064) 1 month ago
cassandra_database.py community[patch]: Refactor CassandraDatabase wrapper (#21075) 2 months ago
clickup.py docs: community docstring updates (#21040) 2 months ago
dalle_image_generator.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
dataforseo_api_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
dataherald.py community[minor]: Add Datahareld tool (#19680) 3 months ago
dria_index.py community[minor]: Add Dria retriever (#17098) 3 months ago
duckduckgo_search.py docs: duckduckgosearch options listed (#22568) 4 weeks ago
github.py docs: remove repetitive words (#21058) 2 months ago
gitlab.py GITLAB_URL should take default https://gitlab.com instead of error (#14638) 6 months ago
golden_query.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
google_finance.py docs: docstrings `langchain_community` update (#14889) 7 months ago
google_jobs.py docs: docstrings `langchain_community` update (#14889) 7 months ago
google_lens.py community[patch]: Fix for github issue #17690 (#20117) 2 months ago
google_places_api.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
google_scholar.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
google_search.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2 months ago
google_serper.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
google_trends.py community: Handling missing key in Google Trends API response. (#15864) 5 months ago
graphql.py community[patch]: Allow override of 'fetch_schema_from_transport' in the GraphQL tool (#17649) 4 months ago
infobip.py community[minor]: Infobip tool integration (#16805) 3 months ago
jira.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
max_compute.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
merriam_webster.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
metaphor_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
mojeek_search.py community[patch]: Add missing type annotations (#22758) 3 weeks ago
nasa.py docs: docstrings `langchain_community` update (#14889) 7 months ago
nvidia_riva.py community[patch]: flattening imports 3 (#18939) 4 months ago
opaqueprompts.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
openapi.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
openweathermap.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
oracleai.py community[minor]: Oraclevs integration (#21123) 2 months ago
outline.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
passio_nutrition_ai.py docs: community docstring updates (#21040) 2 months ago
pebblo.py [Community][Minor]: Fetch loader_source of GoogleDriveLoader in PebbloSafeLoader. (#21314) 2 months ago
polygon.py community: Add PolygonAggregates tool (#18882) 4 months ago
portkey.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
powerbi.py infra: rm unused # noqa violations (#22049) 1 month ago
pubmed.py infra: add print rule to ruff (#16221) 5 months ago
python.py community[major], experimental[patch]: Remove Python REPL from community (#22904) 2 weeks ago
reddit_search.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
redis.py community[patch]: upgrade to recent version of mypy (#21616) 2 months ago
rememberizer.py community[minor]: Adds a vector store for Azure Cosmos DB for NoSQL (#21676) 3 weeks ago
requests.py community: Fix #22975 (Add SSL Verification Option to Requests Class in langchain_community) (#22977) 2 weeks ago
scenexplain.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
searchapi.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
searx_search.py infra: add print rule to ruff (#16221) 5 months ago
semanticscholar.py community: Semanticscholar tool to search 200M+ scientific articles (#15151) 6 months ago
serpapi.py community[minor]: import fix (#20995) 2 months ago
spark_sql.py community[minor]: import fix (#20995) 2 months ago
sql_database.py community[patch]: fix database uri type in SQLDatabase (#22661) 3 weeks ago
stackexchange.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
steam.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
tavily_search.py infra: rm unused # noqa violations (#22049) 1 month ago
tensorflow_datasets.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
twilio.py infra: rm unused # noqa violations (#22049) 1 month ago
vertexai.py community[patch]: docstrings update (#20301) 3 months ago
wikidata.py community: Wikidata tool support (#16691) 5 months ago
wikipedia.py community[minor]: Implement lazy_load() for WikipediaLoader (#18680) 4 months ago
wolfram_alpha.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago
you.py community(you): Better support for You.com News API (#22622) 2 weeks ago
zapier.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 7 months ago