mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-19 01:21:50 +00:00
community: change wikidata rest api version from v0 to v1 (#29708)
**Description:** According to the [wikidata documentation](https://www.wikidata.org/wiki/Wikidata_talk:REST_API), Wikibase REST API version 1 (stable) is released from November 11, 2024. Their guide is to use the new v1 API and, it just requires replacing v0 in the routes with v1 in almost all cases. So I replaced WIKIDATA_REST_API_URL from v0 to v1 for stable usage. Co-authored-by: ccurme <chester.curme@gmail.com>
This commit is contained in:
parent
4a389ef4c6
commit
3b3d52206f
@ -70,7 +70,7 @@ DEFAULT_PROPERTIES = [
|
||||
DEFAULT_LANG_CODE = "en"
|
||||
WIKIDATA_USER_AGENT = "langchain-wikidata"
|
||||
WIKIDATA_API_URL = "https://www.wikidata.org/w/api.php"
|
||||
WIKIDATA_REST_API_URL = "https://www.wikidata.org/w/rest.php/wikibase/v0/"
|
||||
WIKIDATA_REST_API_URL = "https://www.wikidata.org/w/rest.php/wikibase/v1/"
|
||||
|
||||
|
||||
class WikidataAPIWrapper(BaseModel):
|
||||
|
Loading…
Reference in New Issue
Block a user