{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":813217577,"defaultBranch":"main","name":"agi","ownerLogin":"openmindx","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-06-10T17:39:36.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/140857329?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1718041177.60751","currentOid":""},"activityList":{"items":[{"before":"6f2cacd1304e475dcae1ba475e4f3237e9651468","after":"e870941cc7ad8c87bbeb22ff30846c40aa271631","ref":"refs/heads/main","pushedAt":"2024-06-11T02:45:29.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solution for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solution generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from openmind Autonomous General Intelligence\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research building openmind autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you exit to quit. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"faabf130af03e536db30eae1bafe84d57b0765f7","after":"6f2cacd1304e475dcae1ba475e4f3237e9651468","ref":"refs/heads/main","pushedAt":"2024-06-11T02:40:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solution generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from openmind Autonomous General Intelligence\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research building openmind autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you exit to quit. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"116875f8944f54f788efa01e016d22b7689b9844","after":"faabf130af03e536db30eae1bafe84d57b0765f7","ref":"refs/heads/main","pushedAt":"2024-06-11T02:37:04.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update agi.py\n\n# openmind (c) Gregory L. Magnusson 2024 MIT license\r\nimport openai\r\n\r\nopenai.api_key = ''\r\n\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if agi_prompt.lower() == 'exit':\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n\r\nif __name__ == \"__main__\":\r\n main()","shortMessageHtmlLink":"Update agi.py"}},{"before":"33f280fed7087540ebebdb057f10e28ea30250cf","after":"116875f8944f54f788efa01e016d22b7689b9844","ref":"refs/heads/main","pushedAt":"2024-06-11T02:32:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update agi.py\n\n# openmind (c) codephreak 2024 MIT license\r\nimport openai\r\n\r\nopenai.api_key = ''\r\n\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if agi_prompt.lower() == 'exit':\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n\r\nif __name__ == \"__main__\":\r\n main()","shortMessageHtmlLink":"Update agi.py"}},{"before":"d109e84f867cac21bb9b005957879a74b49546d9","after":"33f280fed7087540ebebdb057f10e28ea30250cf","ref":"refs/heads/main","pushedAt":"2024-06-11T02:27:51.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solution generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from openmind Autonomous General Intelligence\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research and exploration building openmind towards an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you exit to quit. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"ca534ea2ba094ea837008a542bd223a5cf2b66d4","after":"d109e84f867cac21bb9b005957879a74b49546d9","ref":"refs/heads/main","pushedAt":"2024-06-11T02:27:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solutions generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from openmind Autonomous General Intelligence\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research and exploration building openmind towards an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you exit to quit. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"35572dc56c2c3ab8a1a6c78fd7bdfc0ed7ef9d1b","after":"ca534ea2ba094ea837008a542bd223a5cf2b66d4","ref":"refs/heads/main","pushedAt":"2024-06-11T00:49:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solutions generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from openmind Autonomous General Intelligence\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research and exploration building openmind towards an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"6e090a75ce13b822a6507c9e677c6c980d947009","after":"35572dc56c2c3ab8a1a6c78fd7bdfc0ed7ef9d1b","ref":"refs/heads/main","pushedAt":"2024-06-11T00:09:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solutions generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively generating solution from problem. agi.py is published for further research and exploration building openmind towards an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"155a484f1d539f84caeb15037a4548a57e06b8af","after":"6e090a75ce13b822a6507c9e677c6c980d947009","ref":"refs/heads/main","pushedAt":"2024-06-11T00:08:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solutions generator as openmind openai gpt-4o api call using minimal python code.\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows input problem as statement to openmind processed response using OpenAI's `gpt-4o` model to return solution generated from agi_prompt using the gpt-4o API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recursive version of openmind agi_prompt is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"482d5b3877b1da9f9bfd3c30471edbe68127a702","after":"155a484f1d539f84caeb15037a4548a57e06b8af","ref":"refs/heads/main","pushedAt":"2024-06-11T00:07:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n*** This recursive version of openmind AGI is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"3cd28107c71267d1b822194c5bde7648f0817ef2","after":"482d5b3877b1da9f9bfd3c30471edbe68127a702","ref":"refs/heads/main","pushedAt":"2024-06-11T00:06:14.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nimport openai\r\n\r\nopenai.api_key = ''\r\n\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if agi_prompt.lower() == 'exit':\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n\r\nif __name__ == \"__main__\":\r\n main()","shortMessageHtmlLink":"Update README.md"}},{"before":"35c6afb7479cf319e239a709fc645771ee4be1a8","after":"3cd28107c71267d1b822194c5bde7648f0817ef2","ref":"refs/heads/main","pushedAt":"2024-06-11T00:03:45.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nimport openai\r\n\r\nopenai.api_key = ''\r\n\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if agi_prompt.lower() == 'exit':\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n\r\nif __name__ == \"__main__\":\r\n main()","shortMessageHtmlLink":"Update README.md"}},{"before":"72ce17e4deb04db56cdec12619ccbcc9aefacbd3","after":"35c6afb7479cf319e239a709fc645771ee4be1a8","ref":"refs/heads/main","pushedAt":"2024-06-11T00:02:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursive prompt solutions generator as openmind openai gpt-4o api call\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows users to input problem as statement then openmind processes the input using OpenAI's `gpt-4o` model continuing to returns the solution generated by the API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recusive version of openmind AGI is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"78280748430f4d5637c4222d3323033f3866e878","after":"72ce17e4deb04db56cdec12619ccbcc9aefacbd3","ref":"refs/heads/main","pushedAt":"2024-06-10T20:27:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursivce prompt solutions generator as openmind infinite response openai gpt-4o api call\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows users to input problem as statement then openmind processes the input using OpenAI's `gpt-4o` model continuing to returns the solution generated by the API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recusive version of openmind AGI is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"06f4612bc4b816ac381798b83b766226ad45cff9","after":"78280748430f4d5637c4222d3323033f3866e878","ref":"refs/heads/main","pushedAt":"2024-06-10T20:27:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursivce prompt solutions generator as openmind infinite response openai gpt-4o api call\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows users to input problem as statement then openmind processes the input using OpenAI's `gpt-4o` model continuing to returns the solution generated by the API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recusive version of openmind AGI is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"cafbfced1d30b8aad5f8d4f0863c0ffb740b37cb","after":"06f4612bc4b816ac381798b83b766226ad45cff9","ref":"refs/heads/main","pushedAt":"2024-06-10T20:25:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n# Autonomous General Intelligence (AGI) Solution Generator\r\n\r\nThis project leverages the OpenAI API to create a script that interacts with a model named `gpt-4o` to generate an openmind solutions for user-provided prompts. The script runs interactively, continuously accepting user inputs, processing them through the AI model, and returning the solution until a solution is found or the user decides to exit.\r\n\r\n## Objective\r\n\r\nTo showcase a recursivce prompt solutions generator as openmind infinite response openai gpt-4o api call\r\n\r\n## prompt\r\n\r\n```bash\r\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n```\r\n\r\n\r\n## Script Overview\r\n\r\nThis Python script allows users to input problem as statement then openmind processes the input using OpenAI's `gpt-4o` model continuing to returns the solution generated by the API.\r\n\r\n### Key Components\r\n\r\n**Importing Required Libraries**\r\n\r\n```python\r\nimport openai\r\n```\r\n\r\nThis line imports the OpenAI library, which is essential for interacting with OpenAI's API to utilize their AI models\r\n\r\n# ADD YOUR API KEY\r\n\r\n```python\r\nopenai.api_key = ''\r\n```\r\n\r\nopenai-api signup
\r\n\r\n\r\n### Defining the Function to Get Solutions from the AGI\r\n\r\n```python\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n```\r\n Function Name: get_solution_from_agi\r\n\r\n Parameters:\r\n agi_prompt: A string that contains the problem statement or question provided by the user.\r\n\r\n Process:\r\n Prompt Construction:\r\n The prompt for the AI model is constructed by embedding the user's input into a pre-defined template: \"Autonomous general intelligence return solution: {agi_prompt}.\".\r\n API Call:\r\n openai.chat.completions.create method is used to interact with the OpenAI API. The model parameter specifies the AI model (gpt-4o), and the messages parameter provides the conversation context.\r\n A system message sets the context for the AI, indicating it is an AGI solution creator. A user message includes the prompt constructed earlier.\r\n Extracting the Solution:\r\n The response from the API call is parsed to extract the solution content, which is then returned by the function.\r\n\r\n### Main Function for User Interaction\r\n\r\n```python\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if (agi_prompt.lower() == 'exit'):\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n```\r\nFunction Name: main\r\n\r\nProcess:\r\n\r\n Infinite Loop:\r\n The script enters an infinite loop to continually accept user inputs.\r\n User Prompt:\r\n The user is prompted to enter a problem statement or question. The input is stored in the variable agi_prompt.\r\n Exit Condition:\r\n If the user types 'exit' (case insensitive), the loop breaks, terminating the program.\r\n Solution Generation and Display:\r\n The input agi_prompt is passed to the get_solution_from_agi function to generate a solution.\r\n The returned solution is then printed to the console.\r\n\r\n### Script Entry Point\r\n\r\n```python\r\nif __name__ == \"__main__\":\r\n main()\r\n```\r\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\n### Usage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script\r\n \r\n # bash\r\n git clone https://github.com/openmindx/agi\r\n cd agi\r\n python3 -m venv agi\r\n source agi/bin/activate\r\n pip install openai\r\n python3 agi.py\r\n \r\n \r\n Enter a problem statement or question at the prompt.\r\n The AI will return an infinite solution iterating over itself which is printed on the console.\r\n Type 'exit' to terminate the program.\r\n\r\n\r\n*** This recusive version of openmind AGI is an example of connection to openai API using python. This script will continue indefinately recursively improving upon your problem as a solution response. agi.py is published for further research and expansion into building openmind into an autonomous general intelligence multi-model integration environment. Use at your own risk and know your API limits. agi.py will not stop until you tell it to stop. For a deep dive into AGI research and development enter agi as the problem to solve.","shortMessageHtmlLink":"Update README.md"}},{"before":"13122d0a8ed9bb3def66ed6ae5e5d3d49aa0dc2f","after":"cafbfced1d30b8aad5f8d4f0863c0ffb740b37cb","ref":"refs/heads/main","pushedAt":"2024-06-10T19:34:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")","shortMessageHtmlLink":"Update README.md"}},{"before":"7c12a3186082871aa3f6189b2208d42b2a309e6f","after":"13122d0a8ed9bb3def66ed6ae5e5d3d49aa0dc2f","ref":"refs/heads/main","pushedAt":"2024-06-10T19:32:35.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")","shortMessageHtmlLink":"Update README.md"}},{"before":"645a1e4df8e6c47f88c4e9dce152de68abb1f18d","after":"7c12a3186082871aa3f6189b2208d42b2a309e6f","ref":"refs/heads/main","pushedAt":"2024-06-10T19:32:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nagi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")","shortMessageHtmlLink":"Update README.md"}},{"before":"e23c635876bb0d660c6fa1583a5ab3fb0930f026","after":"645a1e4df8e6c47f88c4e9dce152de68abb1f18d","ref":"refs/heads/main","pushedAt":"2024-06-10T19:31:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\nprompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"","shortMessageHtmlLink":"Update README.md"}},{"before":"51b84a48f8731f62fa61daaf132799560faa2a85","after":"e23c635876bb0d660c6fa1583a5ab3fb0930f026","ref":"refs/heads/main","pushedAt":"2024-06-10T19:29:18.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"244000671b8cf688e53ac4b5afe65fc0df611a4a","after":"51b84a48f8731f62fa61daaf132799560faa2a85","ref":"refs/heads/main","pushedAt":"2024-06-10T18:12:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"bffdfe60fecde3afa265181b6c205385fe33d8f8","after":"244000671b8cf688e53ac4b5afe65fc0df611a4a","ref":"refs/heads/main","pushedAt":"2024-06-10T18:08:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"767be2847e8a6945fbb018a5f1617a891b93b9ae","after":"bffdfe60fecde3afa265181b6c205385fe33d8f8","ref":"refs/heads/main","pushedAt":"2024-06-10T18:07:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"4391eff2fc2c97cb7a4d6ca2b4c044333e7fcf78","after":"767be2847e8a6945fbb018a5f1617a891b93b9ae","ref":"refs/heads/main","pushedAt":"2024-06-10T18:07:06.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"710fba7181a423b279b3d1cc27330df228449558","after":"4391eff2fc2c97cb7a4d6ca2b4c044333e7fcf78","ref":"refs/heads/main","pushedAt":"2024-06-10T18:05:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"d85733112422050050e95d04f1d454d5c46b4613","after":"710fba7181a423b279b3d1cc27330df228449558","ref":"refs/heads/main","pushedAt":"2024-06-10T18:04:09.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n Purpose:\r\n This conditional statement ensures that the main function is executed only when the script is run directly, not when imported as a module.\r\n\r\nUsage\r\n\r\n Setup:\r\n Ensure you have the openai library installed.\r\n Set your OpenAI API key in the openai.api_key variable.\r\n\r\n Execution:\r\n Run the script.\r\n Enter a problem statement or question at the prompt.\r\n The AI will return a solution, which is printed on the console.\r\n Type 'exit' to terminate the program.","shortMessageHtmlLink":"Update README.md"}},{"before":"ac151ae7881b9bb5a01fbc1a622fb7b6331f1860","after":"d85733112422050050e95d04f1d454d5c46b4613","ref":"refs/heads/main","pushedAt":"2024-06-10T17:51:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"3ba259766b08ba4bed984425c9ef474c93ba5c4a","after":"ac151ae7881b9bb5a01fbc1a622fb7b6331f1860","ref":"refs/heads/main","pushedAt":"2024-06-10T17:51:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Update README.md\n\n**Importing Required Libraries**","shortMessageHtmlLink":"Update README.md"}},{"before":"a139338b69498a1b79b4fde02fea04f16543bca9","after":"3ba259766b08ba4bed984425c9ef474c93ba5c4a","ref":"refs/heads/main","pushedAt":"2024-06-10T17:40:39.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"Professor-Codephreak","name":"codephreak","path":"/Professor-Codephreak","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/140855987?s=80&v=4"},"commit":{"message":"Create agi.py\n\nimport openai\r\n\r\nopenai.api_key = ''\r\n\r\ndef get_solution_from_agi(agi_prompt):\r\n prompt = f\"Autonomous general intelligence return solution: {agi_prompt}.\"\r\n\r\n response = openai.chat.completions.create(\r\n model=\"gpt-4o\",\r\n messages=[\r\n {\"role\": \"system\", \"content\": \"You are openmind the easy action event AGI solution creator.\"},\r\n {\"role\": \"user\", \"content\": prompt}\r\n ]\r\n )\r\n solution = response.choices[0].message.content\r\n return solution\r\n\r\ndef main():\r\n while True:\r\n agi_prompt = input(\"Enter the problem to solve (or type 'exit' to quit): \")\r\n if agi_prompt.lower() == 'exit':\r\n break\r\n solution = get_solution_from_agi(agi_prompt)\r\n print(f\"\\nSolution:\\n{solution}\\n\")\r\n\r\nif __name__ == \"__main__\":\r\n main()","shortMessageHtmlLink":"Create agi.py"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEYbornwA","startCursor":null,"endCursor":null}},"title":"Activity ยท openmindx/agi"}