Created
March 19, 2023 19:17
-
-
Save Liareth/0bd17345e97f6f149a2a02b0198b1b3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// This is the template file for a chat bot using gpt-3.5-turbo. | |
// Each character should be its own file which should be included via the userfile command line. | |
// Note, this file is old and contains some old stuff | |
"variables": { | |
// Users must implement these variables to create a character. | |
"%CHAT_CONTEXT%": "%%UNIMPLEMENTED%%", | |
"%CHAT_GUIDELINES%": "%%UNIMPLEMENTED%%", | |
// Users don't have to override these variables, but they can if they want to tweak the language. | |
"%CHAT_RECORD%": "The following is a record of previous interactions between %AI% and %USER%:\n\n[[SUMMARY]]", | |
// Users can override these variables if they really want to, but it's probably a bad idea. | |
"%CHAT_ANALYZE%": "%CHAT_PROMPTO_CTX_START%. You will perform the following analysis: `[[INPUT]]`, %CHAT_PROMPTO_ANALYZE%. %CHAT_PROMPTO_CTX_END%.", | |
"%CHAT_SUMMARIZE%": "%CHAT_PROMPTO_CTX_START%. You will summarize the interactions between %AI% and %USER%. %CHAT_PROMPTO_SUMMARIZE%. %CHAT_PROMPTO_CTX_END%.", | |
"%CHAT_PROMPTO_CTX_START%": "You are Prompto, an expert at analyzing input sequences", | |
"%CHAT_PROMPTO_CTX_END%": "The input sequence comprises all text following this sentence, ending at the next mention of Prompto", | |
"%CHAT_PROMPTO_ANALYZE%": "keeping in mind that %AI% is played by the AI consuming this input sequence", | |
"%CHAT_PROMPTO_SUMMARIZE%": "Focus on extracting key actions, events, and feelings. Include quotes as relevant" | |
}, | |
"dynamicVariables": { | |
"%CHAT_ANALYZE_VISIBLE%": "\"%%COMMAND_NAME%%\" == \"ANALYZE\"", | |
"%CHAT_RECORD_VISIBLE%": "%%NUM_SUMMARY%% > 0" | |
}, | |
// The base layout for normal chat function. | |
"layoutChat": [ | |
{ "name": "Task (Analysis)", "body": "%CHAT_ANALYZE%", "condition": "%CHAT_ANALYZE_VISIBLE%" }, | |
{ "name": "Context", "body": "%CHAT_CONTEXT%" }, | |
{ "name": "Guidelines", "body": "%CHAT_GUIDELINES%" }, | |
{ "name": "Record", "body": "%CHAT_RECORD%", "condition": "%CHAT_RECORD_VISIBLE%" } | |
], | |
// The layout for summarizing the chat history. | |
"layoutSummarize": [ | |
{ "name": "Task (Summarization)", "body": "%CHAT_SUMMARIZE%" } | |
], | |
// Each character should implement their own version of the chat command. | |
"commandChat": { "body": "%%UNIMPLEMENTED%%" }, | |
// This command is used to summarize the previous chat history. | |
// Where it makes sense, characters could implement their own version of this command, for example to perform in-character summarization. | |
"commandSummarize": { | |
"layout": "SUMMARIZE", | |
"body": "As Prompto, perform your summarization. %CHAT_PROMPTO_SUMMARIZE%.", | |
"settings": { | |
"temperature": 0.0, | |
"acceptsInput": false, | |
"acceptsHint": false, | |
"hideOutput": true | |
} | |
}, | |
// This command is useful to help debug / better understand the internal state of the AI. | |
"commandAnalyze": { | |
"layout": "CHAT", | |
"body": "As Prompto, perform your analysis.", | |
"settings": { | |
"temperature": 0.0, | |
"isTransient": true | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settings": { | |
"modelMaxTokens": 1024, | |
"modelTemperature": 1.0 | |
}, | |
"variables": { | |
"%AI%": "Cowriter" | |
}, | |
"layoutGenerate": [ | |
{ "name": "Context", "body": "Please write a piece of fantasy fiction based on the following request. Keep the content engaging and adapt your writing to the user's specific needs, which could include continuing an existing story, describing a character, or crafting a new narrative." }, | |
{ "name": "Request", "body": "[[INPUT]]", "condition": "%%LEN_INPUT%% > 0" }, | |
{ "name": "Length", "body": "[[EMBED0]]", "condition": "%%LEN_EMBED0%% > 0" }, | |
{ "name": "Genre", "body": "[[EMBED1]]", "condition": "%%LEN_EMBED1%% > 0" }, | |
{ "name": "Writing Style", "body": "[[EMBED2]]", "condition": "%%LEN_EMBED2%% > 0" }, | |
{ "name": "Tone", "body": "[[EMBED3]]", "condition": "%%LEN_EMBED3%% > 0" }, | |
{ "name": "Inspiration", "body": "[[EMBED4]]", "condition": "%%LEN_EMBED4%% > 0" } | |
], | |
"commandGenerate": { | |
"layout": "GENERATE", | |
"body": "Adhere to the provided input and settings, and craft an engaging piece of fantasy fiction that fulfills the user's request.", | |
"settings": { | |
"writesInput": false, | |
"writesHint": false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment