Closed
Description
gptscript version v0.8.1+da33973d
Steps to reproduce the problem:
- Have OpenAI API token already set (
sys.openai
credential created) by executing any gptscript. - Execute the following script that uses
gpt4-v-vision
anddalle-image-generation
tools.
Tools: github.com/gptscript-ai/gpt4-v-vision, github.com/gptscript-ai/dalle-image-generation, sys.download
Generate an image of cow and download it in cow.png
Describe the image in file://./cow.png like a kindergarten teacher would.
- Notice that when user is prompted for entering the credentials for
gpt4-v-vision
anddalle-image-generation
tools , the credentials are printed in clear text in console
12:33:35 started [vision(6)] [input={"images":"file://./cow.png","prompt":"Describe the image like a kindergarten teacher would."}]
12:33:35 started [credential: github.com/gptscript-ai/gpt4-v-vision/credential]
12:33:35 sent [credential: github.com/gptscript-ai/gpt4-v-vision/credential]
Please enter your OpenAI API token.
? token ***************************************************
12:34:06 ended [credential: github.com/gptscript-ai/gpt4-v-vision/credential] [output={\"env\": {\"OPENAI_API_KEY\": \"sk-*******************\"}}] ==> This is in clear text
12:34:06 sent [vision(6)]
12:34:19 ended [vision(6)] [output={\n \"id\": \"chatcmpl-9Z1Xv5M9by6w4lA34VOUnPj5zbepX\",\n \"object\": \"chat.completion\",\n \"created\"...]