tools.0.web_search_20250305: Country code SG is not supported
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
Research direction
Start with the UserLocation definition in src/anthropic/types/web_search_tool_20250305_param.py and the supplied web_search_20250305 request. Reproduce the Singapore (SG) request and compare the code comment with the API's 400 response; the issue is resolved when the supported-country behavior or its documentation is clearly established.
Written by the indexing model from the issue text.
Description
According to code comment on UserLocation, country code in ISO_3166-1_alpha-2 are support but when testing with Singapore, it returns 400.
If not all countries listed in ISO_3166-1_alpha-2 are supported, where do we find the actually list of supported country? Thanks.
Tool
{
"type": "web_search_20250305",
"name": "web_search",
"user_location": {
"type": "approximate",
"country": "SG",
"city": "Singapore",
"region": "Singapore",
"timezone": "Asia/Singapore"
}
}
Error Message
BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'tools.0.web_search_20250305: Country code SG is not supported.'}}
- Dominant language
- Python
- Stars
- 4k
- Forks
- 879
- Avg merge
- 10m
- Merged PRs (30d)
- 7
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anthropics/anthropic-sdk-python
-
Three symlink tests in test_agent_toolset.py are missing the needs_symlinks markerPossibly taken @okxint claimed this 34 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
anthropics/anthropic-sdk-python#1915 · 3 comments ·
Maintainers usually reply within 1 day
-
Messages.parse (and AsyncMessages.parse) don't take cache_control?Possibly taken @Alphaxiaoteng claimed this 37 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anthropics/anthropic-sdk-python#1907 ·
Maintainers usually reply within 1 day
-
Windows: os.fchmod in credential write-back bricks the OAuth refresh tokenPossibly taken @OllieinCanada claimed this 50 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
anthropics/anthropic-sdk-python#1868 · 1 comment ·
Maintainers usually reply within 1 day
-
x-stainless-timeout header is NOT_GIVEN on default requestsPossibly taken @KirtiRamchandani claimed this 118 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anthropics/anthropic-sdk-python#1676 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] append_messages() inside tool runner loop causes infinite loop (advanced usage docs example)Possibly taken @Zelys-DFKH claimed this 150 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/anthropic-sdk-python#1536 · 4 comments ·
Maintainers usually reply within 1 day
All issues in anthropics/anthropic-sdk-python
Similar issues
-
python-version
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug javascript P2-medium python release:v3.1
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
adrirubio/claude-deck#546 ·
Maintainers usually reply within 1 day
-
area: desktop area: website priority: P2 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
appandflow/stim#3411 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 Under an hour Newbie friendliness 88/100
baptistehamon/lsapy#185 ·
Maintainers usually reply within 1 day