Method: AzureOpenaiClient::ChatCompletionsCreateRequestMessagesInner#list_invalid_properties

Defined in:
lib/azure_openai_client/models/chat_completions_create_request_messages_inner.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/azure_openai_client/models/chat_completions_create_request_messages_inner.rb', line 108

def list_invalid_properties
  invalid_properties = Array.new
  if @role.nil?
    invalid_properties.push('invalid value for "role", role cannot be nil.')
  end

  if @content.nil?
    invalid_properties.push('invalid value for "content", content cannot be nil.')
  end

  invalid_properties
end