set_max_tokens Subroutine

private pure elemental subroutine set_max_tokens(this, max_tokens)

Type Bound

ChatCompletion

Arguments

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

Called by

proc~~set_max_tokens~~CalledByGraph proc~set_max_tokens foropenai_ChatCompletion::ChatCompletion%set_max_tokens proc~set_chatcompletion_data foropenai_ChatCompletion::ChatCompletion%set_ChatCompletion_data proc~set_chatcompletion_data->proc~set_max_tokens 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_max_tokens(this, max_tokens)
      class(ChatCompletion), intent(inout) :: this
      integer,               intent(in)    :: max_tokens
      this%max_tokens = max_tokens
   end subroutine set_max_tokens