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>
3 months ago
..
__init__.py community[major], experimental[patch]: Remove Python REPL from community (#22904) 3 months ago
alpha_vantage.py community[minor]: Add Alpha Vantage API Tool (#14332) 6 months ago
anthropic.py
apify.py community: fix missing `apify_api_token` field in ApifyWrapper (#22421) 4 months ago
arcee.py
arxiv.py infra: rm unused # noqa violations (#22049) 4 months ago
asknews.py community[minor]: add AskNews retriever and AskNews tool (#21581) 4 months ago
astradb.py community[patch]: docstrings update (#20301) 6 months ago
awslambda.py infra: rm unused # noqa violations (#22049) 4 months ago
bibtex.py
bing_search.py docs: clean up link to bing search (#21825) 4 months ago
brave_search.py
cassandra.py community[minor]: Add Cassandra ByteStore (#22064) 4 months ago
cassandra_database.py community[patch]: Refactor CassandraDatabase wrapper (#21075) 5 months ago
clickup.py docs: community docstring updates (#21040) 5 months ago
dalle_image_generator.py
dataforseo_api_search.py
dataherald.py community[minor]: Add Datahareld tool (#19680) 5 months ago
dria_index.py community[minor]: Add Dria retriever (#17098) 6 months ago
duckduckgo_search.py docs: duckduckgosearch options listed (#22568) 4 months ago
github.py docs: remove repetitive words (#21058) 5 months ago
gitlab.py
golden_query.py
google_finance.py
google_jobs.py
google_lens.py community[patch]: Fix for github issue #17690 (#20117) 5 months ago
google_places_api.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 5 months ago
google_scholar.py
google_search.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 5 months ago
google_serper.py
google_trends.py
graphql.py
infobip.py community[minor]: Infobip tool integration (#16805) 6 months ago
jira.py
max_compute.py
merriam_webster.py
metaphor_search.py
mojeek_search.py community[patch]: Add missing type annotations (#22758) 4 months ago
nasa.py
nvidia_riva.py community[patch]: flattening imports 3 (#18939) 7 months ago
opaqueprompts.py
openapi.py
openweathermap.py
oracleai.py community[minor]: Oraclevs integration (#21123) 5 months ago
outline.py
passio_nutrition_ai.py docs: community docstring updates (#21040) 5 months ago
pebblo.py [Community][Minor]: Fetch loader_source of GoogleDriveLoader in PebbloSafeLoader. (#21314) 5 months ago
polygon.py community: Add PolygonAggregates tool (#18882) 7 months ago
portkey.py
powerbi.py infra: rm unused # noqa violations (#22049) 4 months ago
pubmed.py
python.py community[major], experimental[patch]: Remove Python REPL from community (#22904) 3 months ago
reddit_search.py
redis.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
rememberizer.py community[minor]: Adds a vector store for Azure Cosmos DB for NoSQL (#21676) 3 months ago
requests.py community: Fix #22975 (Add SSL Verification Option to Requests Class in langchain_community) (#22977) 3 months ago
scenexplain.py
searchapi.py
searx_search.py
semanticscholar.py
serpapi.py community[minor]: import fix (#20995) 5 months ago
spark_sql.py community[minor]: import fix (#20995) 5 months ago
sql_database.py community[patch]: fix database uri type in SQLDatabase (#22661) 3 months ago
stackexchange.py
steam.py
tavily_search.py infra: rm unused # noqa violations (#22049) 4 months ago
tensorflow_datasets.py
twilio.py infra: rm unused # noqa violations (#22049) 4 months ago
vertexai.py community[patch]: docstrings update (#20301) 6 months ago
wikidata.py
wikipedia.py community[minor]: Implement lazy_load() for WikipediaLoader (#18680) 7 months ago
wolfram_alpha.py
you.py community(you): Better support for You.com News API (#22622) 3 months ago
zapier.py