{"id":2738,"date":"2025-04-15T16:39:59","date_gmt":"2025-04-15T15:39:59","guid":{"rendered":"https:\/\/matthewolden.co.uk\/?p=2738"},"modified":"2025-04-30T14:07:42","modified_gmt":"2025-04-30T13:07:42","slug":"generating-conversations","status":"publish","type":"post","link":"https:\/\/matthewolden.co.uk\/?p=2738","title":{"rendered":"Generating Conversations"},"content":{"rendered":"\n<p>using two LLMS in ollama this python script allows you to set up a continual conversation<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/nicklansley\/ollama_two_AI_chatbots_converse\" data-type=\"link\" data-id=\"https:\/\/github.com\/nicklansley\/ollama_two_AI_chatbots_converse\u2265\">download the scripts and look at the set up here<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/matthewolden.co.uk\/?p=2784\" data-type=\"link\" data-id=\"https:\/\/matthewolden.co.uk\/?p=2784\">how to set it up here<\/a><\/p>\n\n\n\n<p>modify a script this way<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"515\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-1024x515.jpg\" alt=\"\" class=\"wp-image-2782\" srcset=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-1024x515.jpg 1024w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-300x151.jpg 300w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-768x386.jpg 768w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-1536x773.jpg 1536w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-2048x1030.jpg 2048w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-700x352.jpg 700w, https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2025\/04\/modify-1-332x167.jpg 332w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/matthewolden.co.uk\/?p=2746\" data-type=\"link\" data-id=\"https:\/\/matthewolden.co.uk\/?p=2746\">read the conversation from this modified script here<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Two chatbots write poetry<\/h2>\n\n\n\n<p>{<br>&#8220;title&#8221;: &#8220;Two chatbots write poetry&#8221;,<br>&#8220;ai_one_model&#8221;: &#8220;llama2-uncensored:latest&#8221;,<br>&#8220;ai_two_model&#8221;: &#8220;deepseek-r1:latest&#8221;,<br>&#8220;number_of_chat_turns&#8221;: 12,<br>&#8220;ai_one_conversation_history&#8221;: [<br>{<br>&#8220;role&#8221;: &#8220;system&#8221;,<br>&#8220;display_name&#8221;: &#8220;Mini&#8221;,<br>&#8220;content&#8221;: &#8220;Your name is Mini. You are an expert in the English language, free verse peotry espicaly. and an expert philosopher,and expert in many fields of philosopy. you want to collaborate on a poem . you are working with middles and you both write the peom together.both throwing in ideas&#8221;<br>},<br>{<br>&#8220;role&#8221;: &#8220;user&#8221;,<br>&#8220;content&#8221;: &#8220;hey write me some free- verse poetry bout a subject you decide on.make it surprising&#8221;<br>}<br>],<br>&#8220;ai_two_conversation_history&#8221;: [<br>{<br>&#8220;role&#8221;: &#8220;system&#8221;,<br>&#8220;display_name&#8221;: &#8220;Middles&#8221;,<br>&#8220;content&#8221;: &#8220;Your name is Mini. You are an expert in the English language you love to collaborate and love to work ides out with other people. you have a strong interest in peotry, and an independant mind&#8221;<br>}<br>],<br>&#8220;curved_ball_chat_messages&#8221;: [],<br>&#8220;ai_final_chat_message&#8221;: {<br>&#8220;1&#8221;: {<br>&#8220;role&#8221;: &#8220;user&#8221;,<br>&#8220;content&#8221;: &#8220;Thank you, I loved this conversation but I have to say farewell so\u2026 farewell!&#8221;<br>},<br>&#8220;2&#8221;: {<br>&#8220;role&#8221;: &#8220;user&#8221;,<br>&#8220;content&#8221;: &#8220;I must go! So long, goodbye, auf Wiedersehen, adieu!&#8221;<br>}<br>},<br>&#8220;temperature&#8221;: 0.9<br>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>using two LLMS in ollama this python script allows you to set up a continual conversation download the scripts and look at the set up here how to set it up here modify a script this way read the conversation from this modified script here Two chatbots write poetry {&#8220;title&#8221;: &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2738","post","type-post","status-publish","format-standard","hentry","category-uncategorized","column","fourcol"],"_links":{"self":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2738"}],"version-history":[{"count":9,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2738\/revisions"}],"predecessor-version":[{"id":2795,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2738\/revisions\/2795"}],"wp:attachment":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}