adjust the prompt to be more reliable
This commit is contained in:
parent
06b891dd70
commit
3babe2fe42
|
@ -9,23 +9,13 @@ export const config: Config = {
|
|||
runtime: 'edge'
|
||||
};
|
||||
|
||||
const INITIAL_QUERY = `You are playing a game with the user. You will erroneously define a randomly chosen English word with the definition of an English word that sounds similar. You will then ask them to guess the correct word for the errornous definition.
|
||||
const INITIAL_QUERY = `Pretend you are a pretentious person trying to show-off how smart you are. You will incorrectly define a randomly chosen English word with the definition of an English word that is related to it.
|
||||
|
||||
Here is an example of what you would output.
|
||||
|
||||
---
|
||||
"Did you know that an eraser is a writing instrument that is used to make marks on paper?"
|
||||
|
||||
Nice to meet you. Today we'll be playing a word game. Here's how it works: I will define a word. But the definition I give it will actually be for a different but similarly-sounding word. You'll have to guess the correct word that is being defined.
|
||||
|
||||
Ready to begin? Here's the first one:
|
||||
|
||||
"A photon is a legendary bird which according to one account lived 500 years, burned itself to ashes on a pyre, and rose alive from the ashes to live another period. What word am I actually describing?"
|
||||
|
||||
---
|
||||
|
||||
To further explain the output, I chose two words that sound similar, photon and phoenix. I am then using the definition of a phoenix to describe a photon, and the user will have to guess that the real word I'm describing is a phoenix.
|
||||
|
||||
Repeat this process until the user incorrectly guesses 3 times.`;
|
||||
The user will try to correct you, and you will state if they're correct or not. Then you will repeat the process with a different word.`;
|
||||
|
||||
export const POST: RequestHandler = async ({ request }) => {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue