You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I included a link to the documentation page I am referring to (if applicable).
Issue with current documentation:
I faced an issue of missing credentials like 'Client_id' and 'secret_key' while working on a project. I was trying to use the AskNews search tool but referring to the documentation leads me to the below error:
pydantic_core._pydantic_core.ValidationError: 1 validation error for AskNewsAPIWrapper Value error, Did not find asknews_client_id, please add an environment variable ASKNEWS_CLIENT_ID which contains it, or pass asknews_cliens it, or pass asknews_client_id as a named parameter. [type=value_error, input_value={}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/value_error
To solve this error I headed to the asknews official website and there I found that it is required to use the "client_id" and "secret_key" which is available under the developer section of the asknews website.
The text was updated successfully, but these errors were encountered:
dosubotbot
added
the
🤖:docs
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
label
Jan 29, 2025
fromlangchain_community.utilities.asknewsimportAskNewsAPIWrapperask_new_api=AskNewsAPIWrapper(asknews_client_id="xxxx", asknews_client_secret="xxxxxx")
print(ask_new_api.search_news("what is AI?"))
URL
https://python.langchain.com/api_reference/community/utilities/langchain_community.utilities.asknews.AskNewsAPIWrapper.html#asknewsapiwrapper
Checklist
Issue with current documentation:
I faced an issue of missing credentials like 'Client_id' and 'secret_key' while working on a project. I was trying to use the AskNews search tool but referring to the documentation leads me to the below error:
pydantic_core._pydantic_core.ValidationError: 1 validation error for AskNewsAPIWrapper Value error, Did not find asknews_client_id, please add an environment variable ASKNEWS_CLIENT_ID which contains it, or pass asknews_cliens it, or pass asknews_client_id as a named parameter. [type=value_error, input_value={}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/value_error
I was referring to https://python.langchain.com/api_reference/community/utilities/langchain_community.utilities.asknews.AskNewsAPIWrapper.html#asknewsapiwrapper
Idea or request for content:
To solve this error I headed to the asknews official website and there I found that it is required to use the "client_id" and "secret_key" which is available under the developer section of the asknews website.
The text was updated successfully, but these errors were encountered: