linexjlin / GPTs

leaked prompts of GPTs
28.43k stars 3.84k forks source link

Temperature Specification: ChatGPT Prompts #38

Open ahmerhh opened 9 months ago

ahmerhh commented 9 months ago

Issue Description:

Summary: As a professional prompter of GPT, I've noticed no one gives importance to the temperature control feature in prompts. This feature would be amazing for tailoring the model's responses to specific needs. This ability - to set temperature would allow users to fine-tune the balance between creativity and directness in generated text.

Rather than giving GPT the prompt "Optimize so it doesn't seem AI-generated." ????

ChatGPT Prompt Engineering for Developers

Proposal: I suggest including a temperature parameter in prompt options, enabling users to influence the response style. For instance, setting a lower temperature (e.g., 0.1) would give a more focused, direct, and expected answers. Oppositely, a higher temperature (e.g., 0.8) would introduce more creativity and unpredictability into the responses.

Temperature controls the degree of randomness in the responses and its value ranges between 0 and 1. Where lower values (e.g., 0.2) make the output more focused and deterministic, and higher values (e.g., 0.8) introduce more randomness and creativity.

Expected Behavior: Users should be able to include a temperature parameter in their prompts, such as:

Example 1

"prompt": "Just after you give a prompt on ChatGPT, and add '(temperature = 0.8)' for a direct, less creative, and expected answer.",
"temperature": 0.2

image

Example 2

"prompt": "Just after you give a prompt on ChatGPT, and add '(temperature = 0.8)' for a more creative response.",
"temperature": 0.8

image


Additional Context:

This enhancement would empower users to achieve a more refined balance in the output by leveraging temperature settings on a scale from 0 to 1. For straightforward answers, users could set temperature to 0, while for more creative responses, they could let it range up to 1 and beyond.