Class: OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::UserLocation::Approximate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/chat/completion_create_params.rb

Overview

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(city: nil, country: nil, region: nil, timezone: nil) ⇒ void

Some parameter documentations has been truncated, see OpenAI::Models::Chat::CompletionCreateParams::WebSearchOptions::UserLocation::Approximate for more details.

Approximate location parameters for the search.

Parameters:

  • city (String) (defaults to: nil)

    Free text input for the city of the user, e.g. San Francisco.

  • country (String) (defaults to: nil)

    The two-letter

  • region (String) (defaults to: nil)

    Free text input for the region of the user, e.g. California.

  • timezone (String) (defaults to: nil)


# File 'lib/openai/models/chat/completion_create_params.rb', line 724

Instance Attribute Details

#cityString?

Free text input for the city of the user, e.g. San Francisco.

Returns:

  • (String, nil)


702
# File 'lib/openai/models/chat/completion_create_params.rb', line 702

optional :city, String

#countryString?

The two-letter ISO country code of the user, e.g. US.

Returns:

  • (String, nil)


709
# File 'lib/openai/models/chat/completion_create_params.rb', line 709

optional :country, String

#regionString?

Free text input for the region of the user, e.g. California.

Returns:

  • (String, nil)


715
# File 'lib/openai/models/chat/completion_create_params.rb', line 715

optional :region, String

#timezoneString?

The IANA timezone of the user, e.g. America/Los_Angeles.

Returns:

  • (String, nil)


722
# File 'lib/openai/models/chat/completion_create_params.rb', line 722

optional :timezone, String