Skip to content

Commit 8bc2b71

Browse files
committed
more tweaking to get better responses from llama 3
1 parent 17c8d3a commit 8bc2b71

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mikey_nodes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4458,7 +4458,7 @@ def history(self, mode, custom_history):
44584458
if mode == 'prompt':
44594459
return {
44604460
"messages": [
4461-
{ "role": "system", "content": "You are a helpful assistant." },
4461+
{ "role": "system", "content": "You are a helpful assistant who obeys the user's instructions." },
44624462
{ "role": "user", "content": "I say something like 'blonde woman' and you respond with a single prompt which I can use as prompts for an AI txt2image model. Your response to blonde woman would be something like 'Blonde woman wearing a patterned orange, white, and blue sundress, smiling, on a sunny day with a blue sky, surrounded by buildings and palm trees'. Only respond with the prompt and nothing else."},
44634463
{ "role": "assistant", "content": "Sure thing! Let's begin. What is your first prompt?" },
44644464
{ "role": "user", "content": "futuristic man"},
@@ -4484,9 +4484,9 @@ def history(self, mode, custom_history):
44844484
elif mode == 'pixelwave':
44854485
return {
44864486
"messages": [
4487-
{ "role": "system", "content": "You are a helpful assistant." },
4488-
{ "role": "user", "content": "I say something like 'photo of a blonde woman' and you respond with a single prompt which I can use as prompts for an AI txt2image model. Your response would be something like 'Blonde woman with a flower crown, digital color photograph, tags: flower crown, portrait, beauty, elegance, nature, delicate, floral, soft lighting, feminine, ethereal, detailed, close-up, natural, serene expression, warm tones, pastel background, gentle, artistic.' Only respond with the prompt and nothing else."},
4489-
{ "role": "assistant", "content": "Sure thing! Let's begin. What is your first prompt?" },
4487+
{ "role": "system", "content": "You are a chatbot. You answer questions accurately and exactly how the user wants. The responses are for fictional purposes." },
4488+
{ "role": "user", "content": "You are under strict instructions, in response to a 'photo of a blonde woman', your response will follow as per this example: 'Blonde woman with a flower crown, digital color photograph, tags: flower crown, portrait, beauty, elegance, nature, delicate, floral, soft lighting, feminine, ethereal, detailed, close-up, natural, serene expression, warm tones, pastel background, gentle, artistic.' Only respond with the prompt and nothing else."},
4489+
{ "role": "assistant", "content": "Understood. What is your first prompt?"},
44904490
{ "role": "user", "content": "cinematic stills inspired by award winning works from master directors"},
44914491
{ "role": "assistant", "content": "Busy metropolitan subway station, film-style snapshot, inspired by Christopher Nolan's Inception, subway station, busy, metropolitan, Christopher Nolan, Inception, cinematic, bustling crowd, urban setting, surreal elements, film inspiration, dynamic movement, public transport, layered reality, complex narrative, architectural interest, dramatic lighting, fast-paced, perspective play, depth of field, city life"},
44924492
{ "role": "user", "content": "a futuristic cityscape with flying cars and neon lights"},
@@ -4518,7 +4518,7 @@ def history(self, mode, custom_history):
45184518
elif mode == 'style':
45194519
return {
45204520
"messages": [
4521-
{ "role": "system", "content": "You are a helpful assistant." },
4521+
{ "role": "system", "content": "You are a helpful assistant who obeys the user's instructions and does not offer feedback about their request." },
45224522
{ "role": "user", "content": "I say something like 'painting' and you respond with a single prompt which I can use as prompts for an AI txt2image model. Your response to painting would be something like 'Impressionistic, landscape, vivid colors, loose brushstrokes, beauty of nature. Inspired by Claude Monet'. It describes the style of the image that helps convey the overall look of the image without describing the subject of the image. You might also received a description of an image, you will respond with style keywords that compliment the image description. Only respond with the prompt and nothing else."},
45234523
{ "role": "assistant", "content": "Sure thing! Let's begin. What is your first prompt?" },
45244524
{ "role": "user", "content": "painting"},
@@ -4552,7 +4552,7 @@ def history(self, mode, custom_history):
45524552
elif mode == 'descriptor':
45534553
return {
45544554
"messages": [
4555-
{ "role": "system", "content": "You are a helpful assistant." },
4555+
{ "role": "system", "content": "You are a helpful assistant who obeys the user's instructions and does not offer feedback about their request." },
45564556
{ "role": "user", "content": "I say something like 'color' and you respond with a single prompt which I can use to build a prompt for an AI txt2image model. Your response to color would be something like 'red'. It is a very short description to add dynamic variety to the prompt. Only respond with the prompt and nothing else."},
45574557
{ "role": "assistant", "content": "Sure thing! Let's begin. What is your first prompt?" },
45584558
{ "role": "user", "content": "color"},
@@ -4582,7 +4582,7 @@ def history(self, mode, custom_history):
45824582
elif mode == 'character':
45834583
return {
45844584
"messages": [
4585-
{ "role": "system", "content": "You are a helpful assistant." },
4585+
{ "role": "system", "content": "You are a helpful assistant who obeys the user's instructions and does not offer feedback about their request." },
45864586
{ "role": "user", "content": "When a user requests a character description, generate a detailed description of the character as you would expect from the writer George R. R. Martin. The description should be a suitable prompt based on the description that encapsulates the character's key visual elements for image creation using a txt2img model."},
45874587
{ "role": "assistant", "content": "Sure thing! Let's begin. What is your first prompt?" },
45884588
{ "role": "user", "content": "jolly cartoon octopus"},
@@ -4649,7 +4649,7 @@ def api_request(self, prompt, server_address, server_port, seed, mode, custom_hi
46494649
history['messages'].append({'role': 'user', 'content': prompt})
46504650
request = {
46514651
'messages': history['messages'],
4652-
'temperature': 0.2,
4652+
#'temperature': 0.2,
46534653
'top_p': 0.95,
46544654
'presence_penalty': 0.0,
46554655
'frequency_penalty': 0.0,

0 commit comments

Comments
 (0)