Here we freaking go. ChatGPT's API.
-
I'm learning the subtleties of the shell game to stay economically viable.
-
-
@89th said in Here we freaking go. ChatGPT's API.:
No to sounds dramatic, but this is absolutely the future of search engines, website interaction (i.e., online shopping), customer support, but hopefully @Klaus doesn't connect
SkynetChatGPT to TNCR otherwise we'll really have a hard time telling if @Axtremus is real or not!It's going to completely upend SEO as is currently known, and that's just for starters.
Speaking of AI more generally, there are some concept artists I follow on ArtStation who are already getting accused of using AI in their work. These are folks who've already worked on over a dozen movies, and they're getting called out for "cheating." (They're not, but they're getting accused just the same.)
A couple of retail companies just ate shit because their customer reviews were found to be written with AI. That one's actually true.
And still others are getting accused of being a video AI on Instagram and Tiktok.
Buckle the fuck up.
-
-
@Horace said in Here we freaking go. ChatGPT's API.:
In theory, the efficiencies this will provide are really a great thing.
I could absolutely see using this in a professional context in a way that doesn't compromise my career. On the surface it'd seem ludicrous to assume that was even a possibility.
But if you build a shitty bridge, the bridge collapses and people die.
If you write some bullshit, well, hey, you have no humanities education and you learned emotional intelligence at Duning-Krueger University so you think what you made was brilliant! So you pump your wank out there into the world and blame "the algo" for no one paying attention to it. Meanwhile people like me will be out of work because you don't understand the value and refuse to learn.
The work won't completely go away, just almost all of it.
-
Here are a few examples of how to use ChatGPT's API:
Example 1: Generating text
python
import openai openai.api_key = "your_api_key_here" def generate_text(prompt): completions = openai.Completion.create( engine="text-davinci-002", prompt=prompt, max_tokens=1024, n=1, stop=None, temperature=0.5, ) message = completions.choices[0].text return message.strip() prompt = "What is the meaning of life?" generated_text = generate_text(prompt) print(generated_text)
This code will use ChatGPT to generate a response to the prompt "What is the meaning of life?" using the Davinci engine. The response will be returned as a string, which will be printed to the console.
Example 2: Summarizing text
python
import openai openai.api_key = "your_api_key_here" def summarize_text(text): completions = openai.Completion.create( engine="text-davinci-002", prompt=f"Please summarize the following text: {text}", max_tokens=60, n=1, stop=None, temperature=0.5, ) summary = completions.choices[0].text return summary.strip() text = "In the beginning God created the heavens and the earth. Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters." summary = summarize_text(text) print(summary)
This code will use ChatGPT to summarize the text "In the beginning God created the heavens and the earth. Now the earth was formless and empty, darkness was over the surface of the deep, and the Spirit of God was hovering over the waters." using the Davinci engine. The summary will be returned as a string, which will be printed to the console.
Example 3: Answering questions
python
import openai openai.api_key = "your_api_key_here" def answer_question(question, context): completions = openai.Completion.create( engine="davinci", prompt=f"Answer the following question: '{question}'\nContext: {context}\nAnswer:", max_tokens=1024, n=1, stop=None, temperature=0.5, ) answer = completions.choices[0].text return answer.strip() question = "What is the capital of France?" context = "France is a country located in Western Europe." answer = answer_question(question, context) print(answer)
This code will use ChatGPT to answer the question "What is the capital of France?" with the context "France is a country located in Western Europe." using the Davinci engine. The answer will be returned as a string, which will be printed to the console.
-