set_model Subroutine

private pure elemental subroutine set_model(this, model)

Type Bound

ChatCompletion

Arguments

Type IntentOptional Attributes Name
class(ChatCompletion), intent(inout) :: this
character(len=*), intent(in) :: model

Called by

proc~~set_model~2~~CalledByGraph proc~set_model~2 foropenai_ChatCompletion::ChatCompletion%set_model proc~set_chatcompletion_data foropenai_ChatCompletion::ChatCompletion%set_ChatCompletion_data proc~set_chatcompletion_data->proc~set_model~2 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 pure subroutine set_model(this, model)
      class(ChatCompletion), intent(inout) :: this
      character(len=*),      intent(in)    :: model
      this%model = trim(model)
   end subroutine set_model