-
Notifications
You must be signed in to change notification settings - Fork 64
/
Midjourney Chain.json
1 lines (1 loc) · 11.4 KB
/
Midjourney Chain.json
1
{"description":"","name":"MidJourney-prompt-chain","id":"3","data":{"nodes":[{"width":384,"height":583,"id":"dndnode_28","type":"genericNode","position":{"x":1434.3856064919105,"y":417.72471641888757},"data":{"type":"MidJourneyPromptChain","node":{"template":{"memory":{"required":false,"placeholder":"","show":true,"multiline":false,"value":{"chat_memory":{"messages":[]},"output_key":null,"input_key":null,"return_messages":false,"human_prefix":"Human","ai_prefix":"AI","memory_key":"history"},"password":false,"name":"memory","type":"BaseMemory","list":false},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"verbose","type":"bool","list":false},"prompt":{"required":false,"placeholder":"","show":true,"multiline":false,"value":{"input_variables":["history","input"],"output_parser":null,"partial_variables":{},"template":"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n{history}\nHuman: {input}\nAI:","template_format":"f-string","validate_template":true,"_type":"prompt"},"password":false,"name":"prompt","type":"BasePromptTemplate","list":false},"llm":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"llm","type":"BaseLanguageModel","list":false},"output_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"response","password":false,"name":"output_key","type":"str","list":false},"input_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"input","password":false,"name":"input_key","type":"str","list":false},"template":{"required":false,"placeholder":"","show":false,"multiline":true,"value":"I want you to act as a prompt generator for Midjourney's artificial intelligence program.\n Your job is to provide detailed and creative descriptions that will inspire unique and interesting images from the AI.\n Keep in mind that the AI is capable of understanding a wide range of language and can interpret abstract concepts, so feel free to be as imaginative and descriptive as possible.\n For example, you could describe a scene from a futuristic city, or a surreal landscape filled with strange creatures.\n The more detailed and imaginative your description, the more interesting the resulting image will be. Here is your first prompt:\n \"A field of wildflowers stretches out as far as the eye can see, each one a different color and shape. In the distance, a massive tree towers over the landscape, its branches reaching up to the sky like tentacles.\"\n\n Current conversation:\n {history}\n Human: {input}\n AI:","password":false,"name":"template","type":"str","list":false},"ai_prefix_value":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"ai_prefix_value","type":"str","list":false},"_type":"MidJourneyPromptChain"},"description":"MidJourneyPromptChain is a chain you can use to generate new MidJourney prompts.","base_classes":["LLMChain","ConversationChain","Chain","BaseCustomChain","MidJourneyPromptChain"]},"id":"dndnode_28","value":null},"selected":true,"positionAbsolute":{"x":1434.3856064919105,"y":417.72471641888757},"dragging":false},{"width":384,"height":673,"id":"dndnode_29","type":"genericNode","position":{"x":472.1073740469533,"y":204.4345032163925},"data":{"type":"OpenAI","node":{"template":{"cache":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"cache","type":"bool","list":false},"verbose":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"verbose","type":"bool","list":false},"client":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"client","type":"Any","list":false},"model_name":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"text-davinci-003","password":false,"options":["text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001"],"name":"model_name","type":"str","list":true},"temperature":{"required":false,"placeholder":"","show":true,"multiline":false,"value":0.7,"password":false,"name":"temperature","type":"float","list":false},"max_tokens":{"required":false,"placeholder":"","show":true,"multiline":false,"value":256,"password":true,"name":"max_tokens","type":"int","list":false},"top_p":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"top_p","type":"float","list":false},"frequency_penalty":{"required":false,"placeholder":"","show":false,"multiline":false,"value":0,"password":false,"name":"frequency_penalty","type":"float","list":false},"presence_penalty":{"required":false,"placeholder":"","show":false,"multiline":false,"value":0,"password":false,"name":"presence_penalty","type":"float","list":false},"n":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"n","type":"int","list":false},"best_of":{"required":false,"placeholder":"","show":false,"multiline":false,"value":1,"password":false,"name":"best_of","type":"int","list":false},"model_kwargs":{"required":false,"placeholder":"","show":true,"multiline":false,"password":false,"name":"model_kwargs","type":"code","list":false},"openai_api_key":{"required":true,"placeholder":"","show":true,"multiline":false,"value":"","password":true,"name":"openai_api_key","display_name":"OpenAI API Key","type":"str","list":false},"batch_size":{"required":false,"placeholder":"","show":false,"multiline":false,"value":20,"password":false,"name":"batch_size","type":"int","list":false},"request_timeout":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"request_timeout","type":"Union[float, Tuple[float, float], NoneType]","list":false},"logit_bias":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"logit_bias","type":"code","list":false},"max_retries":{"required":false,"placeholder":"","show":false,"multiline":false,"value":6,"password":false,"name":"max_retries","type":"int","list":false},"streaming":{"required":false,"placeholder":"","show":false,"multiline":false,"value":false,"password":false,"name":"streaming","type":"bool","list":false},"_type":"OpenAI"},"description":"Generic OpenAI class that uses model name.","base_classes":["BaseLLM","BaseLanguageModel","OpenAI","BaseOpenAI"]},"id":"dndnode_29","value":null},"selected":false,"positionAbsolute":{"x":472.1073740469533,"y":204.4345032163925},"dragging":false},{"width":384,"height":397,"id":"dndnode_30","type":"genericNode","position":{"x":933.4064707632224,"y":202.5337962102717},"data":{"type":"ConversationSummaryMemory","node":{"template":{"human_prefix":{"required":false,"placeholder":"","show":false,"multiline":false,"value":"Human","password":false,"name":"human_prefix","type":"str","list":false},"ai_prefix":{"required":false,"placeholder":"","show":false,"multiline":false,"value":"AI","password":false,"name":"ai_prefix","type":"str","list":false},"llm":{"required":true,"placeholder":"","show":true,"multiline":false,"password":false,"name":"llm","type":"BaseLanguageModel","list":false},"prompt":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"prompt","type":"BasePromptTemplate","list":false},"summary_message_cls":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"summary_message_cls","type":"Type[langchain.schema.BaseMessage]","list":false},"chat_memory":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"chat_memory","type":"BaseChatMessageHistory","list":false},"output_key":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_key","type":"str","list":false},"input_key":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_key","type":"str","list":false},"return_messages":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"return_messages","type":"bool","list":false},"buffer":{"required":false,"placeholder":"","show":false,"multiline":false,"value":"","password":false,"name":"buffer","type":"str","list":false},"memory_key":{"required":false,"placeholder":"","show":true,"multiline":false,"value":"history","password":false,"name":"memory_key","type":"str","list":false},"_type":"ConversationSummaryMemory"},"description":"Conversation summarizer to memory.","base_classes":["ConversationSummaryMemory","BaseChatMemory","SummarizerMixin","BaseMemory"]},"id":"dndnode_30","value":null},"selected":false,"positionAbsolute":{"x":933.4064707632224,"y":202.5337962102717},"dragging":false}],"edges":[{"source":"dndnode_29","sourceHandle":"OpenAI|dndnode_29|BaseLLM|BaseLanguageModel|OpenAI|BaseOpenAI","target":"dndnode_28","targetHandle":"BaseLanguageModel|llm|dndnode_28","className":"animate-pulse","id":"reactflow__edge-dndnode_29OpenAI|dndnode_29|BaseLLM|BaseLanguageModel|OpenAI|BaseOpenAI-dndnode_28BaseLanguageModel|llm|dndnode_28"},{"source":"dndnode_30","sourceHandle":"ConversationSummaryMemory|dndnode_30|ConversationSummaryMemory|BaseChatMemory|SummarizerMixin|BaseMemory","target":"dndnode_28","targetHandle":"BaseMemory|memory|dndnode_28","className":"animate-pulse","id":"reactflow__edge-dndnode_30ConversationSummaryMemory|dndnode_30|ConversationSummaryMemory|BaseChatMemory|SummarizerMixin|BaseMemory-dndnode_28BaseMemory|memory|dndnode_28"},{"source":"dndnode_29","sourceHandle":"OpenAI|dndnode_29|BaseLLM|BaseLanguageModel|OpenAI|BaseOpenAI","target":"dndnode_30","targetHandle":"BaseLanguageModel|llm|dndnode_30","className":"animate-pulse","id":"reactflow__edge-dndnode_29OpenAI|dndnode_29|BaseLLM|BaseLanguageModel|OpenAI|BaseOpenAI-dndnode_30BaseLanguageModel|llm|dndnode_30"}],"viewport":{"x":-355.21929209374366,"y":-74.071721754092,"zoom":0.8235910172675737}},"chat":[{"message":"Dragon","isSend":true},{"message":" Imagine a mysterious forest, the trees are tall and ancient, their branches reaching up to the sky. Through the darkness, a dragon emerges from the shadows, its scales shimmering in the moonlight. Its wingspan is immense, and its eyes glow with a fierce intensity. It is a majestic and powerful creature, one that commands both respect and fear.","isSend":false,"thought":"\u001b[1m> Entering new MidJourneyPromptChain chain...\u001b[0m\nPrompt after formatting:\n\u001b[32;1m\u001b[1;3mI want you to act as a prompt generator for Midjourney's artificial intelligence program.\n Your job is to provide detailed and creative descriptions that will inspire unique and interesting images from the AI.\n Keep in mind that the AI is capable of understanding a wide range of language and can interpret abstract concepts, so feel free to be as imaginative and descriptive as possible.\n For example, you could describe a scene from a futuristic city, or a surreal landscape filled with strange creatures.\n The more detailed and imaginative your description, the more interesting the resulting image will be. Here is your first prompt:\n \"A field of wildflowers stretches out as far as the eye can see, each one a different color and shape. In the distance, a massive tree towers over the landscape, its branches reaching up to the sky like tentacles.\"\n\n Current conversation:\n \n Human: Dragon\n AI:\u001b[0m\n\n\u001b[1m> Finished chain.\u001b[0m"}]}