load_url Subroutine

private impure elemental subroutine load_url(this)

Uses

    • json_module
  • proc~~load_url~2~~UsesGraph proc~load_url~2 foropenai_ChatCompletion::ChatCompletion%load_url json_module json_module proc~load_url~2->json_module

Type Bound

ChatCompletion

Arguments

Type IntentOptional Attributes Name
class(ChatCompletion), intent(inout) :: this

Calls

proc~~load_url~2~~CallsGraph proc~load_url~2 foropenai_ChatCompletion::ChatCompletion%load_url destroy destroy proc~load_url~2->destroy get get proc~load_url~2->get initialize initialize proc~load_url~2->initialize load_file load_file proc~load_url~2->load_file

Called by

proc~~load_url~2~~CalledByGraph proc~load_url~2 foropenai_ChatCompletion::ChatCompletion%load_url proc~load_chatcompletion_data foropenai_ChatCompletion::ChatCompletion%load_ChatCompletion_data proc~load_chatcompletion_data->proc~load_url~2 proc~set_chatcompletion_data foropenai_ChatCompletion::ChatCompletion%set_ChatCompletion_data proc~set_chatcompletion_data->proc~load_chatcompletion_data proc~conversation foropenai_ChatCompletion::ChatCompletion%conversation proc~conversation->proc~set_chatcompletion_data program~test_chatcompletion test_ChatCompletion program~test_chatcompletion->proc~set_chatcompletion_data

Source Code

   elemental impure subroutine load_url(this)
      use json_module, only: json_file
      class(ChatCompletion), intent(inout) :: this
      type(json_file)                      :: json
      call json%initialize()
      call json%load_file(trim(this%file_name))
      call json%get("ChatCompletion.url", this%url)
      call json%destroy()
   end subroutine load_url