| 126 | }; | 128 | }; |
| 127 | | 129 | |
| 128 | const promptTemplates = { | 130 | const promptTemplates = { |
| 129 | // Not really a prompt template, rather an outcome message template | 131 | // Not really a prompt template, rather an outcome message template and function tool prompt |
| 130 | [generationMode.MESSAGE]: '[{{char}} sends a picture that contains: {{prompt}}].', | 132 | [generationMode.MESSAGE]: '[{{char}} sends a picture that contains: {{prompt}}].', |
| | 133 | [generationMode.TOOL]: [ |
| | 134 | 'The text prompt used to generate the image.', |
| | 135 | 'Must represent an exhaustive description of the desired image that will allow an artist or a photographer to perfectly recreate it.', |
| | 136 | ].join(' '), |
| 131 | [generationMode.CHARACTER]: 'In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, clothing, occupation, physical features and appearances. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase \'full body portrait,\'', | 137 | [generationMode.CHARACTER]: 'In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, clothing, occupation, physical features and appearances. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase \'full body portrait,\'', |
| 132 | //face-specific prompt | 138 | //face-specific prompt |
| 133 | [generationMode.FACE]: 'In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, facial features and expressions, occupation, hair and hair accessories (if any), what they are wearing on their upper body (if anything). Do not describe anything below their neck. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase \'close up facial portrait,\'', | 139 | [generationMode.FACE]: 'In the next response I want you to provide only a detailed comma-delimited list of keywords and phrases which describe {{char}}. The list must include all of the following items in this order: name, species and race, gender, age, facial features and expressions, occupation, hair and hair accessories (if any), what they are wearing on their upper body (if anything). Do not describe anything below their neck. Do not include descriptions of non-visual qualities such as personality, movements, scents, mental traits, or anything which could not be seen in a still photograph. Do not write in full sentences. Prefix your description with the phrase \'close up facial portrait,\'', |