Skip to content

Commit 5979968

Browse files
VinciGit00claude
andcommitted
fix: remove locationGeoCode alias, send country directly on wire
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bce7760 commit 5979968

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

scrapegraph-py/scrapegraph_py/models/search.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class SearchRequest(CamelModel):
3333
country: Optional[str] = Field(
3434
default=None,
3535
max_length=10,
36-
serialization_alias="locationGeoCode",
3736
description="Two-letter country code for geo-targeted results (e.g. 'us', 'it')",
3837
)
3938
time_range: Optional[str] = Field(

scrapegraph-py/tests/test_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async def fake_request(method, url, **kwargs):
134134
"mode": "prune",
135135
"prompt": "Extract titles",
136136
"schema": {"type": "object", "properties": {"title": {"type": "string"}}},
137-
"locationGeoCode": "it",
137+
"country": "it",
138138
"timeRange": "past_week",
139139
}
140140
assert result["results"][0]["url"] == "https://example.com"

scrapegraph-py/tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def fake_request(method, url, **kwargs):
155155
"mode": "prune",
156156
"prompt": "Extract titles",
157157
"schema": {"type": "object", "properties": {"title": {"type": "string"}}},
158-
"locationGeoCode": "it",
158+
"country": "it",
159159
"timeRange": "past_week",
160160
}
161161
assert result["results"][0]["url"] == "https://example.com"

0 commit comments

Comments
 (0)