{"id":35,"date":"2025-01-02T22:45:08","date_gmt":"2025-01-02T22:45:08","guid":{"rendered":"https:\/\/soulmate.davidmaiolo.com\/?page_id=35"},"modified":"2025-01-03T16:27:21","modified_gmt":"2025-01-03T16:27:21","slug":"soulmate-chat","status":"publish","type":"page","link":"https:\/\/soulmate.davidmaiolo.com\/index.php\/soulmate-chat\/","title":{"rendered":"Soulmate Chat"},"content":{"rendered":"      <div id=\"openai-chat-payment-container\" style=\"max-width:100%; margin:0 auto;\">\n\n        \n        <!-- Show usage or status if you like: -->\n        <div id=\"openai-chat-payment-usage\"><\/div>\n\n        <!-- Chat message container -->\n        <div id=\"openai-chat-payment-messages\"\n            style=\"border:1px solid #ccc;\n                    height:calc(100vh - 300px);\n                    overflow-y:auto;\n                    margin-bottom:10px;\n                    background-color:#f9f9f9;\n                    padding:10px;\">\n        <\/div>\n\n        <!-- User input -->\n        <div style=\"display:flex; gap:5px;\">\n          <input type=\"text\"\n                id=\"openai-chat-payment-chat-input\"\n                style=\"flex:1; padding:10px;\"\n                placeholder=\"Type your message here...\"\n                autocomplete=\"off\" \/>\n          <button id=\"openai-chat-payment-send-btn\"\n                  class=\"button button-primary\">\n            Send\n          <\/button>\n        <\/div>\n\n        <!-- New Conversation -->\n        <button id=\"openai-chat-payment-new-convo\"\n                class=\"button\"\n                style=\"margin-top:10px;\">\n          New Conversation\n        <\/button>\n\n        <div style=\"margin-top:10px;\"><a class=\"button button-secondary\" href=\"\/index.php\/wp-json\/wp\/v2\/pages\/35?view_option_a_history=1\">View Chat History<\/a><\/div>        \n\n        \n        <!-- Registration form if user hits usage limit and isn't logged in\/paid -->\n        <div id=\"openai-chat-payment-registration\" style=\"margin-top:20px; display:none;\">\n          <h3>Sign Up to Continue<\/h3>\n          <p>Create a new account, then subscribe if needed.<\/p>\n          \n          <p>\n            <label for=\"openai_reg_username\">Username:<\/label><br\/>\n            <input type=\"text\" id=\"openai_reg_username\" style=\"width:300px;\" \/>\n          <\/p>\n          <p>\n            <label for=\"openai_reg_email\">Email:<\/label><br\/>\n            <input type=\"email\" id=\"openai_reg_email\" style=\"width:300px;\" \/>\n          <\/p>\n          <p>\n            <label for=\"openai_reg_password\">Password:<\/label><br\/>\n            <input type=\"password\" \n                  id=\"openai_reg_password\" \n                  name=\"openai_reg_password\" \n                  style=\"width:300px;\" \n                  autocomplete=\"new-password\" \/>\n          <\/p>\n          <p>\n            <label for=\"openai_reg_password_confirm\">Confirm Password:<\/label><br\/>\n            <input type=\"password\" \n                  id=\"openai_reg_password_confirm\" \n                  name=\"openai_reg_password_confirm\" \n                  style=\"width:300px;\" \n                  autocomplete=\"new-password\" \/>\n          <\/p>\n          <button id=\"openai_reg_submit\" class=\"button button-secondary\">Register<\/button>\n          <p>If you already have an account, \n            <a href=\"https:\/\/soulmate.davidmaiolo.com\/wp-login.php\">login here<\/a>.\n          <\/p>\n        <\/div>\n      <\/div>\n\n      <script>\n      var OPENAI_AI_NAME         = \"SoulmateAI\";\n      var OPENAI_GREETING_MSG    = \"Tell me about your relationship problems.\";\n      var OPENAI_CONVERSATION_ID = \"conv_69f347b7572a2\";\n      <\/script>\n      \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-no-title","meta":{"footnotes":""},"class_list":["post-35","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/pages\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":3,"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/pages\/35\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/pages\/35\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/soulmate.davidmaiolo.com\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}