why ChatGPT will not take over the world.

why ChatGPT will not take over the world.

Are you ready for the future of AI? Introducing GPT, or the Generative Pre-training Transformer, developed by the innovative team at OpenAI. But before you start imagining a world ruled by robots, let me tell you a little more about the company and its mission.

Founded by the likes of Elon Musk, OpenAI is a non-profit research company that aims to promote and develop friendly AI for the betterment of humanity. With a strong emphasis on transparency, fairness, and accountability, this cutting-edge technology is designed to make our lives easier, not take over the world.

But what does this mean for ChatGPT? Well, for starters, it can generate human-like text with a simple prompt. For example, if you were to ask it to create a riddle about a dog, cat, and alien, it might give you something like this: "A dog, a cat, and an alien walk into a bar. They each order something to drink. The dog orders water, the cat orders milk, and the alien orders a UFO. What's strange about their order?" The answer, of course, is that they are all animals and can't order drinks at a bar. Not the best riddle, but the real magic of ChatGPT is in its ability to build on questions and inputs, taking a complex topic and shaping it to your needs.

But that's not all. ChatGPT can even help with software engineering tasks, like building a docker-compose file from a docker run command. And, if you're feeling adventurous, you can even ask it to create a file for GitHub Actions that will re-run code for an Amazon VPS whenever changes are made. The possibilities are endless.

The results are great but not perfect and the chat does give some great syntax.

So i asked ChatGPT, 'can you build me a docker-compose file based on this docker run command? docker run -d -p 8000:8000 --name graphviz sseemayer/graphviz' and this is what i got.


version: '3

services:

? graphviz:

??? image: my-graphviz

??? ports:

????? - "8000:8000"

??? restart: always'        

So, the question is, does this work? Not quite.?The line ‘image: my-graphviz’ is not a usable url, it would need to be a local image already built. ?When docker runs sseemayer/graphviz, it knows to go to docker.io and pull the image from there.

So, great syntax provided, saves some time, but not executable without human input.

At this point, I started to think to myself, ‘hmm, what if I ask it to make this a github actions file so that I can perform gitops?’?I’m not real familiar with github actions and though this might be a cool thing to do with this code.?So I asked ChatGPT ‘can you build a file for github actions that will re-run this code for a amazon vps whenever changes are made to the code?’

Here is the result.


name: Deplo

on:

? push:

??? branches:

????? - main

jobs:

? deploy:

??? runs-on: ubuntu-latest

??? steps:

??? - name: Checkout code

????? uses: actions/checkout@v2

??? - name: Build and push Docker image

????? run: |

??????? docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"

??????? docker build -t my-graphviz .

??? ????docker tag my-graphviz $DOCKER_USERNAME/my-graphviz

??????? docker push $DOCKER_USERNAME/my-graphviz

??? - name: Deploy to Amazon VPS

????? run: |

??????? ssh -o "StrictHostKeyChecking=no" ubuntu@your-server-ip "docker pull $DOCKER_USERNAME/my-graphviz && docker-compose down && docker-compose up -d"? ??y        

So, I haven’t tested this code but off the cuff I can tell it would not work without human intervention, or at the least include some best practices for a gitops pipeline.?The line ‘my-graphviz’ will cause the actions to error out and the line ‘runs-on: Ubuntu-latest’ would need to be changed to something like ‘Ubuntu:20.04’, running latest is just bad juju’s.

So, while ChatGPT may not take over the world, it's certainly a tool that will make our lives easier and more efficient. And with the team at OpenAI at the helm, we can trust that it will be used for the greater good. In my opinion, it's just the beginning and we are headed into a new industrial revolution, a age of imagination.

No Skynet today!

要查看或添加评论,请登录

社区洞察

其他会员也浏览了