Skip to content

tools.0.web_search_20250305: Country code SG is not supported #995

@ronail

Description

@ronail

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.'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions