set_Translation_data Subroutine

private impure elemental subroutine set_Translation_data(this, file_name, url, model, temperature, response_format)

Type Bound

Translation

Arguments

Type IntentOptional Attributes Name
class(Translation), intent(inout) :: this
character(len=*), intent(in), optional :: file_name
character(len=*), intent(in), optional :: url
character(len=*), intent(in), optional :: model
real, intent(in), optional :: temperature
character(len=*), intent(in), optional :: response_format

Calls

proc~~set_translation_data~~CallsGraph proc~set_translation_data foropenai_Translation::Translation%set_Translation_data proc~load_translation_data foropenai_Translation::Translation%load_Translation_data proc~set_translation_data->proc~load_translation_data proc~set_file_name foropenai_base::openai%set_file_name proc~set_translation_data->proc~set_file_name proc~set_model~3 foropenai_Translation::Translation%set_model proc~set_translation_data->proc~set_model~3 proc~set_response_format~3 foropenai_Translation::Translation%set_response_format proc~set_translation_data->proc~set_response_format~3 proc~set_temperature~3 foropenai_Translation::Translation%set_temperature proc~set_translation_data->proc~set_temperature~3 proc~set_url~4 foropenai_Translation::Translation%set_url proc~set_translation_data->proc~set_url~4 proc~load_translation_data->proc~set_file_name proc~load_model~3 foropenai_Translation::Translation%load_model proc~load_translation_data->proc~load_model~3 proc~load_response_format~3 foropenai_Translation::Translation%load_response_format proc~load_translation_data->proc~load_response_format~3 proc~load_temperature~3 foropenai_Translation::Translation%load_temperature proc~load_translation_data->proc~load_temperature~3 proc~load_url~4 foropenai_Translation::Translation%load_url proc~load_translation_data->proc~load_url~4 destroy destroy proc~load_model~3->destroy get get proc~load_model~3->get initialize initialize proc~load_model~3->initialize load_file load_file proc~load_model~3->load_file proc~load_response_format~3->destroy proc~load_response_format~3->get proc~load_response_format~3->initialize proc~load_response_format~3->load_file proc~load_temperature~3->destroy proc~load_temperature~3->get proc~load_temperature~3->initialize proc~load_temperature~3->load_file proc~load_url~4->destroy proc~load_url~4->get proc~load_url~4->initialize proc~load_url~4->load_file

Called by

proc~~set_translation_data~~CalledByGraph proc~set_translation_data foropenai_Translation::Translation%set_Translation_data program~test_translation test_Translation program~test_translation->proc~set_translation_data

Source Code

   elemental impure subroutine set_Translation_data(this, file_name, &
      url, model, temperature, response_format)
      class(Translation),         intent(inout) :: this
      character(len=*), optional, intent(in)    :: file_name
      character(len=*), optional, intent(in)    :: url
      character(len=*), optional, intent(in)    :: model
      real,             optional, intent(in)    :: temperature
      character(len=*), optional, intent(in)    :: response_format

      if (present(url)) call this%set_url(url=url)
      if (present(model)) call this%set_model(model=model)
      if (present(temperature)) call this%set_temperature(temperature=temperature)
      if (present(response_format)) call this%set_response_format(response_format=response_format)

      if (present(file_name)) then
         call this%set_file_name(file_name)
         call this%load(file_name)
      end if
   end subroutine set_Translation_data