deallocate_messages Subroutine

private pure elemental subroutine deallocate_messages(this)

Type Bound

ChatCompletion

Arguments

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

Called by

proc~~deallocate_messages~~CalledByGraph proc~deallocate_messages foropenai_ChatCompletion::ChatCompletion%deallocate_messages proc~deallocate_chatcompletion foropenai_ChatCompletion::ChatCompletion%deallocate_ChatCompletion proc~deallocate_chatcompletion->proc~deallocate_messages program~test_chatcompletion test_ChatCompletion program~test_chatcompletion->proc~deallocate_chatcompletion

Source Code

   elemental pure subroutine deallocate_messages(this)
      class(ChatCompletion), intent(inout) :: this
      if (allocated(this%messages)) deallocate(this%messages)
   end subroutine deallocate_messages