set_model_list Subroutine

private pure elemental subroutine set_model_list(this)

Type Bound

ChatCompletion

Arguments

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

Called by

proc~~set_model_list~~CalledByGraph proc~set_model_list foropenai_ChatCompletion::ChatCompletion%set_model_list proc~print_model_list foropenai_ChatCompletion::ChatCompletion%print_model_list proc~print_model_list->proc~set_model_list proc~select_model foropenai_ChatCompletion::ChatCompletion%select_model proc~select_model->proc~set_model_list

Source Code

   elemental pure subroutine set_model_list(this)
      class(ChatCompletion), intent(inout) :: this
      if (.not. allocated(this%model_list)) allocate(this%model_list(8))
      this%model_list(1) = trim('gpt-4')
      this%model_list(2) = trim('gpt-4-0613')
      this%model_list(3) = trim('gpt-4-32k')
      this%model_list(4) = trim('gpt-4-32k-0613')
      this%model_list(5) = trim('gpt-3.5-turbo')
      this%model_list(6) = trim('gpt-3.5-turbo-0613')
      this%model_list(7) = trim('gpt-3.5-turbo-16k')
      this%model_list(8) = trim('gpt-3.5-turbo-16k-0613')
   end subroutine set_model_list