Mercurial > repos > bgruening > chatgpt_openai_api
comparison chatgpt.xml @ 1:08c658e9aa9e draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/chatgpt commit 13c168a7d6a2d5050c04253754fb86321ad57d54
author | bgruening |
---|---|
date | Wed, 14 Aug 2024 11:33:44 +0000 |
parents | f256dc85e1a0 |
children | dab494dce303 |
comparison
equal
deleted
inserted
replaced
0:f256dc85e1a0 | 1:08c658e9aa9e |
---|---|
30 <configfile name="openai_api_key_file"><![CDATA[ | 30 <configfile name="openai_api_key_file"><![CDATA[ |
31 $__user__.extra_preferences.get('chatgpt|api_key', "") | 31 $__user__.extra_preferences.get('chatgpt|api_key', "") |
32 ]]></configfile> | 32 ]]></configfile> |
33 </configfiles> | 33 </configfiles> |
34 <inputs> | 34 <inputs> |
35 <param name="context" type="data" multiple="true" optional="false" format="doc,docx,html,json,pdf,txt,jpg,jpeg,png,webp,gif" label="Context" max="500"/> | 35 <param name="context" type="data" multiple="true" optional="false" format="doc,docx,html,json,pdf,txt,jpg,jpeg,png,webp,gif" label="Context" max="500" help="This data will be uploaded to OpenAI's servers for processing."/> |
36 <param name="question" type="text" optional="false" label="Question" help="Question about the text provided" area="true"/> | 36 <param name="question" type="text" optional="false" label="Question" help="Question about the text provided" area="true"> |
37 <validator type="empty_field"/> | |
38 </param> | |
37 <param name="model" type="select" optional="false" label="Model" help="Select the model you want to use"> | 39 <param name="model" type="select" optional="false" label="Model" help="Select the model you want to use"> |
38 <option value="gpt-4o-mini" selected="true">Affordable and intelligent small model for fast, lightweight tasks (gpt-4o-mini)</option> | 40 <option value="gpt-4o-mini" selected="true">Affordable and intelligent small model for fast, lightweight tasks (gpt-4o-mini)</option> |
39 <option value="gpt-4o">High-intelligence flagship model for complex, multi-step tasks (gpt-4o)</option> | 41 <option value="gpt-4o">High-intelligence flagship model for complex, multi-step tasks (gpt-4o)</option> |
40 <option value="gpt-4-turbo">The previous set of high-intelligence model with vision capabilities (gpt-4-turbo)</option> | 42 <option value="gpt-4-turbo">The previous set of high-intelligence model with vision capabilities (gpt-4-turbo)</option> |
41 <option value="gpt-4">The previous set of high-intelligence model (gpt-4) (not supporting images)</option> | 43 <option value="gpt-4">The previous set of high-intelligence model (gpt-4) (not supporting images)</option> |
48 <tests> | 50 <tests> |
49 <test expect_failure="true" expect_exit_code="1"> | 51 <test expect_failure="true" expect_exit_code="1"> |
50 <param name="context" value="chatgpt_test.txt" ftype="txt"/> | 52 <param name="context" value="chatgpt_test.txt" ftype="txt"/> |
51 <param name="question" value="What is this?"/> | 53 <param name="question" value="What is this?"/> |
52 <param name="model" value="gpt-4o-mini"/> | 54 <param name="model" value="gpt-4o-mini"/> |
53 <assert_stderr> | 55 <assert_stdout> |
54 <has_text text="Exception: OpenAI API key is not provided in user preferences!"/> | 56 <has_text text="OpenAI API key is not provided in user preferences!"/> |
55 </assert_stderr> | 57 </assert_stdout> |
56 </test> | 58 </test> |
57 </tests> | 59 </tests> |
58 <help><![CDATA[ | 60 <help><![CDATA[ |
59 | 61 |
60 .. class:: infomark | 62 .. class:: infomark |