select_model Subroutine

private pure elemental subroutine select_model(this, n)

Type Bound

ChatCompletion

Arguments

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

Calls

proc~~select_model~~CallsGraph proc~select_model foropenai_ChatCompletion::ChatCompletion%select_model proc~set_model_list foropenai_ChatCompletion::ChatCompletion%set_model_list proc~select_model->proc~set_model_list

Source Code

   elemental pure subroutine select_model(this,n)
      class(ChatCompletion), intent(inout) :: this
      integer,               intent(in)    :: n
      call this%set_model_list()
      this%model = this%model_list(n)
   end subroutine select_model