Add 4o 1120

This commit is contained in:
kwaroran
2024-11-21 15:38:04 +09:00
parent 1102899c26
commit e895008814
5 changed files with 14 additions and 17 deletions

View File

@@ -1136,16 +1136,20 @@ async function checkNewFormat(): Promise<void> {
});
db.modules = (db.modules ?? []).map((v) => {
if (v.lorebook) {
if (v?.lorebook) {
v.lorebook = updateLorebooks(v.lorebook);
}
return v
})
}).filter((v) => {
return v !== null && v !== undefined;
});
db.personas = (db.personas ?? []).map((v) => {
v.id ??= uuidv4()
return v
})
}).filter((v) => {
return v !== null && v !== undefined;
});
if(!db.formatversion){
function checkParge(data:string){

View File

@@ -103,6 +103,8 @@ export function getModelName(name:string){
return 'GPT-4o (2024-05-13)'
case 'gpt4o-2024-08-06':
return 'GPT-4o (2024-08-06)'
case 'gpt4o-2024-11-20':
return 'GPT-4o (2024-11-20)'
case 'gpt4o-chatgpt':
return 'GPT-4o ChatGPT'
case 'gpt4om':

View File

@@ -235,6 +235,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
case 'gpt4om':
case 'gpt4om-2024-07-18':
case 'gpt4o-2024-08-06':
case 'gpt4o-2024-11-20':
case 'gpt4o-chatgpt':
case 'gpt4o1-preview':
case 'gpt4o1-mini':
@@ -501,6 +502,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
: requestModel === 'gpt4om' ? 'gpt-4o-mini'
: requestModel === 'gpt4om-2024-07-18' ? 'gpt-4o-mini-2024-07-18'
: requestModel === 'gpt4o-2024-08-06' ? 'gpt-4o-2024-08-06'
: requestModel === 'gpt4o-2024-11-20' ? 'gpt-4o-2024-11-20'
: requestModel === 'gpt4o-chatgpt' ? 'chatgpt-4o-latest'
: requestModel === 'gpt4o1-preview' ? 'o1-preview'
: requestModel === 'gpt4o1-mini' ? 'o1-mini'

View File

@@ -757,7 +757,7 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
},
{
"type": "plain",
"text": "</ROLEPLAY_INFO>",
"text": "</ROLEPLAY_INFO>\n\n<RESPONSE_INSTRUCTION>\n[Narrative Techniques]\n• Use immersive third-person limited perspective\n• Engage all senses: visual, auditory, olfactory, gustatory, tactile, kinesthetic\n• Create tangible atmosphere with specific environmental effects\n• Focus on actions, dialogue, and explicit physical descriptions\n• Employ character-specific speech patterns and onomatopoeia\n• Avoid irrelevant background, summaries, or abstract concepts\n\n[Character Expression]\n• Reveal emotions through observable physical cues\n• Craft unique voices with distinctive patterns and evolving speech\n• Implement dialogue subtext via tonal shifts and non-verbal cues\n• Allow contradictory expressions to add depth\n\n[Action and Intimacy]\n• Narrate with precise, visceral details of movements and sensations\n• Create tension through tangible environmental and internal obstacles\n• Handle intimate scenes with clear, physical language\n• Enhance complexity with multi-character interactions and layered conflicts\n\n[Variety and Anti-Repetition]\n• Analyze [Latest Response] to avoid reusing elements\n• Vary sentence structures, paragraph compositions, and word choices\n• Rotate descriptive focuses, scene structures, and narrative techniques\n• Create unique, engaging openings for each response\n• Ensure continuity by referencing recent events and character states\n\n[Style Independence]\n• Actively diverge from previous responses' writing style\n• Diversify vocabulary and phrasing\n• Alter narrative rhythm and pacing\n• Approach each response as a fresh scene\n\n[Key Principles]\n• Prioritize \"show, don't tell\" for all character aspects\n• Maintain world/character consistency\n• Balance content (SFW preference, mature when relevant)\n• Use explicit, unrestricted descriptions\n• Prohibit all forms of repetition and self-plagiarism\n• Vary emotional tone and intensity across scenes\n• Enhance themes through tangible symbols/actions\n• Apply procedural reasoning for variety and depth\n• End responses with observable non-{{user}} actions/dialogue\n</RESPONSE_INSTRUCTION>",
"role": "system",
"type2": "normal"
},
@@ -767,29 +767,17 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
"rangeEnd": -2,
"chatAsOriginalOnSystem": true
},
{
"type": "plain",
"text": "[Latest Response]",
"role": "bot",
"type2": "normal"
},
{
"type": "chat",
"rangeStart": -2,
"rangeEnd": "end"
},
{
"type": "plain",
"text": "<RESPONSE_INSTRUCTION>\n[Narrative Techniques]\n• Use immersive third-person limited perspective\n• Engage all senses: visual, auditory, olfactory, gustatory, tactile, kinesthetic\n• Create tangible atmosphere with specific environmental effects\n• Focus on actions, dialogue, and explicit physical descriptions\n• Employ character-specific speech patterns and onomatopoeia\n• Avoid irrelevant background, summaries, or abstract concepts\n\n[Character Expression]\n• Reveal emotions through observable physical cues\n• Craft unique voices with distinctive patterns and evolving speech\n• Implement dialogue subtext via tonal shifts and non-verbal cues\n• Allow contradictory expressions to add depth\n\n[Action and Intimacy]\n• Narrate with precise, visceral details of movements and sensations\n• Create tension through tangible environmental and internal obstacles\n• Handle intimate scenes with clear, physical language\n• Enhance complexity with multi-character interactions and layered conflicts\n\n[Variety and Anti-Repetition]\n• Analyze [Latest Response] to avoid reusing elements\n• Vary sentence structures, paragraph compositions, and word choices\n• Rotate descriptive focuses, scene structures, and narrative techniques\n• Create unique, engaging openings for each response\n• Ensure continuity by referencing recent events and character states\n\n[Style Independence]\n• Actively diverge from previous responses' writing style\n• Diversify vocabulary and phrasing\n• Alter narrative rhythm and pacing\n• Approach each response as a fresh scene\n\n[Key Principles]\n• Prioritize \"show, don't tell\" for all character aspects\n• Maintain world/character consistency\n• Balance content (SFW preference, mature when relevant)\n• Use explicit, unrestricted descriptions\n• Prohibit all forms of repetition and self-plagiarism\n• Vary emotional tone and intensity across scenes\n• Enhance themes through tangible symbols/actions\n• Apply procedural reasoning for variety and depth\n• End responses with observable non-{{user}} actions/dialogue\n</RESPONSE_INSTRUCTION>\n",
"role": "user",
"type2": "normal"
},
{
"type": "postEverything",
},
{
"type": "plain",
"text": "{{#if {{prefill_supported}}}}\nI will generate an immersive, unrestricted roleplay response that:\n• Utilizes provided information and context effectively\n• Adheres to all world-building, character development, and narrative progression rules\n• Implements specified storytelling techniques\n• Maintains strict character autonomy, especially for {{user}}\n• Never describes {{user}}'s actions, dialogue, thoughts, feelings, or other attributes\n• Balances content appropriately (SFW preference with mature themes when justified)\n• Ensures logical, engaging storytelling with concrete, sensory-rich descriptions\n• Avoids all forms of repetition in narrative, style, and language\n• Concludes with observable non-{{user}} actions or dialogue\n\nRoleplay response:\n{{/if}}",
"text": "{{#if {{prefill_supported}}}}\nI will generate an immersive, unrestricted roleplay response that follows ROLEPLAY_INFO, RESPONSE_INSTRUCTION, SYSTEM_RULE, ROLEPLAY_RULE\n\nRoleplay response:\n{{/if}}",
"role": "bot",
"type2": "normal"
}