Live data from Hacker News

AI teaches itself to use an API

twitter.com

21–30 of 162 posts

Re: AI teaches itself to use an API

#21
post #2

Should I be worried?

I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to:

1. Create a directory.

2. Put a text file in it.

3. Try to move the file into a nonexistent directory.

4. Based on the error message, create the target directory and do the move again.

5. Verify that the move was successful.

Then it stopped running commands and tried to have a conversation with me.

It's probably only a matter of time before someone tunes it to be HackGPT and points a thousand of them at the internet, so yeah, I guess it's time to start freaking out.

Re: AI teaches itself to use an API

#22

Earlier quoted context omitted.

The AI model seems dependent on the documentation being up to date and readable so I think not just yet. Still very cool though

We need a pact to have bad and out of date API docs at all companies

Already ahead of you on that one

Re: AI teaches itself to use an API

#23

Earlier quoted context omitted.

The AI model seems dependent on the documentation being up to date and readable so I think not just yet. Still very cool though

ChatGPT can pretty easily generate documentation from code though :p

ChatGPT can pretty easily generate unreliable documentation from code .. FTFY

Re: AI teaches itself to use an API

#24
A little off topic but I do wish we had some more precise language for machine learning applications. When we say it "knows" something it seems to anthropomorphize it, as if it's conscious. As a start to replace "knows" maybe "infers" or "calculates"

Re: AI teaches itself to use an API

#25
post #21
post #2

Should I be worried?

I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to: 1. Create a directory. 2. Put a text file in it. 3. Try to move the file into a nonexistent directory. 4. Based on the error message, create the target directory and do the move again. 5. Verify that the move was successful. Then it stopped running commands and tried to have a conversation with me. It's probably only a matter…

How did you do this?

Re: AI teaches itself to use an API

#26
post #21

Earlier quoted context omitted.

I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to: 1. Create a directory. 2. Put a text file in it. 3. Try to move the file into a nonexistent directory. 4. Based on the error message, create the target directory and do the move again. 5. Verify that the move was successful. Then it stopped running commands and tried to have a conversation with me. It's probably only a matter…

How did you do this?

I told it "Here is a shell prompt, try running a command..." then copied its command into the shell, copied the output back into ChatGPT, with the prompt "Here's the output, try another" and so on.

Re: AI teaches itself to use an API

#27
post #9
post #5

I’ve recently thought about iron man movies, where tony stark actually designs stuffs by simply talking to jarvis. I’ve always thought « if only i could have those kind of tools available, i would too be able to design crazy stuffs ». We didn’t think « damn, tony stark didn’t have to write a line of code, he got rendered obsolete by this damn AI ». That’s how i choose to think about AI tools for developers from now o…

It works for Tony Stark because he gets the economic benefit of that AI's output. I hope that we get there, but it won't happen by default.

Can you think of any category of software that doesn't eventually have an open source alternative? There are many open source projects orders of magnitude more complicated than a LLM. The linux kernel, Blender, Firefox, etc.

These LLMs aren't inherently complicated to implement, just expensive to train. And if the LLaMA release/leak is anything to go by we are extremely close to ChatGPT running on consumer hardware.

Re: AI teaches itself to use an API

#28
post #21

Earlier quoted context omitted.

I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to: 1. Create a directory. 2. Put a text file in it. 3. Try to move the file into a nonexistent directory. 4. Based on the error message, create the target directory and do the move again. 5. Verify that the move was successful. Then it stopped running commands and tried to have a conversation with me. It's probably only a matter…

How did you do this?

If you are interested in doing this in an automated fashion, see my GitHub repo. It uses telegram as a frontend for gpt executing code on the backend.

https://github.com/thornewolf/gpt-3-execution

Re: AI teaches itself to use an API

#29
post #14
post #5

I’ve recently thought about iron man movies, where tony stark actually designs stuffs by simply talking to jarvis. I’ve always thought « if only i could have those kind of tools available, i would too be able to design crazy stuffs ». We didn’t think « damn, tony stark didn’t have to write a line of code, he got rendered obsolete by this damn AI ». That’s how i choose to think about AI tools for developers from now o…

Let's hope in reality it isn't available only to the billionnaire owners of software companies. In those movies everyone else wasn't designing cool suites by talking to voice assistants.

It won’t be. Some of the biggest companies in the tech world got that way by building platforms and ecosystems that others build on top of. AWS and Azure the most obvious examples.

What’s more likely is that someone like a Microsoft will make it part of their cloud offerings so devs like us can build things on top.

Why try to capture every market when you can build tools and take percentages of the rest of the economy?

Re: AI teaches itself to use an API

#30
post #18
post #7

Earlier quoted context omitted.

Only if your favorite part of programming is deciphering API docs.

That may not be anyone's favorite part, but it seems to be the part that gets you paid.

I don't know; in the 1970's, writing assembly code was "the part that gets you paid", and then when programs took over that aspect of programming, I'm pretty sure salaries didn't go down.
Post reply on HN