ChatGPT

Utilize OpenAI's ChatGPT model to generate text responses based on natural language text prompts and save the text result to the 'output.txt' file in the workspace

API KEY

First, go to the OpenAI website (https://platform.openai.com/) to create an account:

Next, go to the 'API Keys' section within 'Manage Account' to generate your API key. Copy it to your clipboard:

MODEL

The default model is gpt-3.5-turbo, and you can switch to new models if they are released in the future.

MAX TOKENS

The maximum response word count. Typically the higher the value, the more time it takes to generate a response. For OpenAI's pricing and calculation method, please refer to the link in the document.

TEMPERATURE(0~1.0)

The randomness of the response, 0 is the lowest and most stable; 1.0 is the highest and most random.

SYSTEM PROMPT

Defining the role or overall function assigned to the model, for example, translating user-provided text into Traditional Chinese.

USER PROMPT

The user prompts. For example: 'OpenAI has trained cutting-edge language models that are very good at understanding and generating text.'

--

We are dedicated to improving our content. Please let us know if you come across any errors, including spelling, grammar, or other mistakes, as your feedback is valuable to us! 🤖️⚡️

Last updated