# HG changeset patch # User bgruening # Date 1723635224 0 # Node ID 08c658e9aa9e196073837b4bcfc112325c403291 # Parent f256dc85e1a03f75ad08feaa43876a63bc3a253f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/chatgpt commit 13c168a7d6a2d5050c04253754fb86321ad57d54 diff -r f256dc85e1a0 -r 08c658e9aa9e chatgpt.py --- a/chatgpt.py Tue Aug 13 14:25:19 2024 +0000 +++ b/chatgpt.py Wed Aug 14 11:33:44 2024 +0000 @@ -9,7 +9,8 @@ with open(sys.argv[4], "r") as f: openai_api_key = f.read().strip() if not openai_api_key: - raise Exception("OpenAI API key is not provided in user preferences!") + print("OpenAI API key is not provided in user preferences!") + sys.exit(1) client = OpenAI(api_key=openai_api_key) diff -r f256dc85e1a0 -r 08c658e9aa9e chatgpt.xml --- a/chatgpt.xml Tue Aug 13 14:25:19 2024 +0000 +++ b/chatgpt.xml Wed Aug 14 11:33:44 2024 +0000 @@ -32,8 +32,10 @@ ]]> - - + + + + @@ -50,9 +52,9 @@ - - - + + +