test_ImageGeneration Program

Uses

  • program~~test_imagegeneration~~UsesGraph program~test_imagegeneration test_ImageGeneration module~foropenai foropenai program~test_imagegeneration->module~foropenai module~foropenai_base foropenai_base module~foropenai->module~foropenai_base module~foropenai_chatcompletion foropenai_ChatCompletion module~foropenai->module~foropenai_chatcompletion module~foropenai_imagegeneration foropenai_ImageGeneration module~foropenai->module~foropenai_imagegeneration module~foropenai_transcription foropenai_Transcription module~foropenai->module~foropenai_transcription module~foropenai_translation foropenai_Translation module~foropenai->module~foropenai_translation module~foropenai_chatcompletion->module~foropenai_base module~foropenai_imagegeneration->module~foropenai_base module~foropenai_transcription->module~foropenai_base module~foropenai_translation->module~foropenai_base

Calls

program~~test_imagegeneration~~CallsGraph program~test_imagegeneration test_ImageGeneration proc~create_image foropenai_ImageGeneration::ImageGeneration%create_image program~test_imagegeneration->proc~create_image proc~deallocate_imagegeneration foropenai_ImageGeneration::ImageGeneration%deallocate_ImageGeneration program~test_imagegeneration->proc~deallocate_imagegeneration proc~print_assistant_response~3 foropenai_ImageGeneration::ImageGeneration%print_assistant_response program~test_imagegeneration->proc~print_assistant_response~3 proc~print_prompt~2 foropenai_ImageGeneration::ImageGeneration%print_prompt program~test_imagegeneration->proc~print_prompt~2 proc~set_base_data foropenai_base::openai%set_base_data program~test_imagegeneration->proc~set_base_data proc~set_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%set_ImageGeneration_data program~test_imagegeneration->proc~set_imagegeneration_data add add proc~create_image->add deserialize deserialize proc~create_image->deserialize destroy destroy proc~create_image->destroy get get proc~create_image->get initialize initialize proc~create_image->initialize pair_type pair_type proc~create_image->pair_type print_to_string print_to_string proc~create_image->print_to_string proc~set_assistant_response~2 foropenai_ImageGeneration::ImageGeneration%set_assistant_response proc~create_image->proc~set_assistant_response~2 proc~set_n~2 foropenai_ImageGeneration::ImageGeneration%set_n proc~create_image->proc~set_n~2 proc~set_prompt~2 foropenai_ImageGeneration::ImageGeneration%set_prompt proc~create_image->proc~set_prompt~2 proc~set_response_format~2 foropenai_ImageGeneration::ImageGeneration%set_response_format proc~create_image->proc~set_response_format~2 proc~set_size foropenai_ImageGeneration::ImageGeneration%set_size proc~create_image->proc~set_size proc~set_user_name~2 foropenai_ImageGeneration::ImageGeneration%set_user_name proc~create_image->proc~set_user_name~2 request request proc~create_image->request proc~deallocate_assistant_response~2 foropenai_ImageGeneration::ImageGeneration%deallocate_assistant_response proc~deallocate_imagegeneration->proc~deallocate_assistant_response~2 proc~deallocate_url~3 foropenai_ImageGeneration::ImageGeneration%deallocate_url proc~deallocate_imagegeneration->proc~deallocate_url~3 proc~deallocate_user_name~2 foropenai_ImageGeneration::ImageGeneration%deallocate_user_name proc~deallocate_imagegeneration->proc~deallocate_user_name~2 colorize colorize proc~print_assistant_response~3->colorize proc~print_prompt~2->colorize proc~load_api_key foropenai_base::openai%load_api_key proc~set_base_data->proc~load_api_key proc~load_organization foropenai_base::openai%load_organization proc~set_base_data->proc~load_organization proc~set_api_key foropenai_base::openai%set_api_key proc~set_base_data->proc~set_api_key proc~set_api_key_env foropenai_base::openai%set_api_key_env proc~set_base_data->proc~set_api_key_env proc~set_file_name foropenai_base::openai%set_file_name proc~set_base_data->proc~set_file_name proc~set_organization foropenai_base::openai%set_organization proc~set_base_data->proc~set_organization proc~set_organization_env foropenai_base::openai%set_organization_env proc~set_base_data->proc~set_organization_env proc~load_imagegeneration_data foropenai_ImageGeneration::ImageGeneration%load_ImageGeneration_data proc~set_imagegeneration_data->proc~load_imagegeneration_data proc~set_imagegeneration_data->proc~set_file_name proc~set_imagegeneration_data->proc~set_n~2 proc~set_imagegeneration_data->proc~set_prompt~2 proc~set_imagegeneration_data->proc~set_response_format~2 proc~set_imagegeneration_data->proc~set_size proc~set_url~3 foropenai_ImageGeneration::ImageGeneration%set_url proc~set_imagegeneration_data->proc~set_url~3 proc~set_imagegeneration_data->proc~set_user_name~2 proc~load_api_key->destroy proc~load_api_key->get proc~load_api_key->initialize proc~load_api_key->proc~set_file_name load_file load_file proc~load_api_key->load_file proc~load_imagegeneration_data->proc~set_file_name proc~load_n~2 foropenai_ImageGeneration::ImageGeneration%load_n proc~load_imagegeneration_data->proc~load_n~2 proc~load_response_format~2 foropenai_ImageGeneration::ImageGeneration%load_response_format proc~load_imagegeneration_data->proc~load_response_format~2 proc~load_size foropenai_ImageGeneration::ImageGeneration%load_size proc~load_imagegeneration_data->proc~load_size proc~load_url~3 foropenai_ImageGeneration::ImageGeneration%load_url proc~load_imagegeneration_data->proc~load_url~3 proc~load_user_name~2 foropenai_ImageGeneration::ImageGeneration%load_user_name proc~load_imagegeneration_data->proc~load_user_name~2 proc~load_organization->destroy proc~load_organization->get proc~load_organization->initialize proc~load_organization->proc~set_file_name proc~load_organization->load_file proc~set_api_key_env->proc~set_api_key proc~set_organization_env->proc~set_organization proc~load_n~2->destroy proc~load_n~2->get proc~load_n~2->initialize proc~load_n~2->load_file proc~load_response_format~2->destroy proc~load_response_format~2->get proc~load_response_format~2->initialize proc~load_response_format~2->load_file proc~load_size->destroy proc~load_size->get proc~load_size->initialize proc~load_size->load_file proc~load_url~3->destroy proc~load_url~3->get proc~load_url~3->initialize proc~load_url~3->load_file proc~load_user_name~2->destroy proc~load_user_name~2->get proc~load_user_name~2->initialize proc~load_user_name~2->load_file

Variables

Type Attributes Name Initial
type(ImageGeneration) :: image

Source Code

program test_ImageGeneration

   use foropenai, only: ImageGeneration

   implicit none

   type(ImageGeneration) :: image

   call image%set_base_data(file_name='foropenai.json')
   call image%set(file_name='foropenai.json')

   call image%create(prompt='a cat with a computer')
   call image%print_prompt()
   call image%print_assistant_response()

   call image%finalize()

end program test_ImageGeneration