Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,207,624 members, 7,999,732 topics. Date: Monday, 11 November 2024 at 12:32 PM

Chatgpt API Is Ready For Developers - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Chatgpt API Is Ready For Developers (1158 Views)

For Developers, How Did You Get Your First Remote Job And What Was The Pay. / How To Make Money In Game Development For Developers. / For Developers Especially Beginners And Junior Developers. (2) (3) (4)

(1) (Reply) (Go Down)

Chatgpt API Is Ready For Developers by truthCoder: 8:27pm On Mar 07, 2023
I got a mail from OpenAI today announcing their ChatGPT API availability to developers.

We can now build new products or integrate into existing apps.

You can go through the libraries at https://platform.openai.com/docs/libraries

As expected, there is a Python library. However, I am glad that the NodeJs library is fully featured too.

For NodeJs:
First install
 $ npm install openai 

then utilise as follows:
 const { Configuration, OpenAIApi } = require("openai" ) ;
const configuration = new Configuration({
apiKey: process.env.OPENAI_API_KEY,
});
const openai = new OpenAIApi(configuration);
const response = await openai.createCompletion({
model: "text-davinci-003",
prompt: "Say this is a test",
temperature: 0,
max_tokens: 7,
});.

For Python:

First install
 $ pip install openai 

then utilise:
. import os
import openai
# Load your API key from an environment variable or secret management service
openai.api_key = os.getenv("OPENAI_API_KEY " )
response = openai.Completion.create(model="text-davinci-003",
prompt="Say this is a test", temperature=0, max_tokens=7)


There are other libraries too plus tutorials and the documentation seems explicit.

It is not for free though. You can review the pricing here at https://openai.com/pricing

What would you be building wit chatGPT?

2 Likes 1 Share

Re: Chatgpt API Is Ready For Developers by Maxxim: 10:02pm On Mar 07, 2023
truthCoder:

What would you be building wit chatGPT?
If it could be integrated into a customer service platform and could maintain conversations and give more details about certain product, I'll be glad to use it.
But I don't know the possibility

2 Likes

Re: Chatgpt API Is Ready For Developers by truthCoder: 10:21pm On Mar 07, 2023
Maxxim:

If it could be integrated into a customer service platform and could maintain conversations and give more details about certain product, I'll be glad to use it.
But I don't know the possibility

Yes it can. Snapchat has done that, according to the mail i got.

It should be easy to integrate. You just adapt the model to your custom-case.

1 Like

Re: Chatgpt API Is Ready For Developers by Maxxim: 11:28pm On Mar 07, 2023
truthCoder:


Yes it can. Snapchat has done that, according to the mail i got.

It should be easy to integrate. You just adapt the model to your custom-case.
Oh, great that's interesting

Alright sir
Re: Chatgpt API Is Ready For Developers by PythonPros: 5:19pm On Mar 08, 2023
There are tons of things that can be done with chatgpt. The uses are endless.

Like the op opined, I prefer using the api cos it makes me work faster...

1 Like

Re: Chatgpt API Is Ready For Developers by DMCA: 7:53pm On Mar 08, 2023
truthCoder:


Yes it can. Snapchat has done that, according to the mail i got.

It should be easy to integrate. You just adapt the model to your custom-case.
And they left out C++😡😡😡
Re: Chatgpt API Is Ready For Developers by LikeAking: 8:57pm On Mar 08, 2023
Maxxim:

If it could be integrated into a customer service platform and could maintain conversations and give more details about certain product, I'll be glad to use it.
But I don't know the possibility

It doesn't work like that.... Unless all your info are online or u train it...

It's still a waste of time..
Re: Chatgpt API Is Ready For Developers by truthCoder: 9:04pm On Mar 08, 2023
LikeAking:


It doesn't work like that.... Unless all your info are online or u train it...

It's still a waste of time..

There is a tutorial on how you can build an AI that can answer questions about your website on the link i shared.

It is very simple to do. Tutorial is in python but i am sure can be adapted to your use case.

The documentation is detailed enough.

Dont say it is a waste of time. Just take time to go through the documentation before concluding.

In the next few months, one of the job requirements that would give an edge is your ability to adapt AI for inhouse use.

Many old sites would need re-writing.

Dont be left out

3 Likes

Re: Chatgpt API Is Ready For Developers by LikeAking: 9:45pm On Mar 08, 2023
truthCoder:


There is a tutorial on how you can build an AI that can answer questions about your website on the link i shared.

It is very simple to do. Tutorial is in python but i am sure can be adapted to your use case.

The documentation is detailed enough.

Dont say it is a waste of time. Just take time to go through the documentation before concluding.

In the next few months, one of the job requirements that would give an edge is your ability to adapt AI for inhouse use.

Many old sites would need re-writing.

Dont be left out

Okay!
Re: Chatgpt API Is Ready For Developers by Maxxim: 7:37am On Mar 09, 2023
LikeAking:


It doesn't work like that.... Unless all your info are online or u train it...

It's still a waste of time..
And what's wrong with the training

Maybe that could be a additional skill which could be some sort of gig you know 😁
Re: Chatgpt API Is Ready For Developers by Deicide: 10:28am On Mar 09, 2023
Am going to do mine in rust, though I don't know what to build with it
Re: Chatgpt API Is Ready For Developers by Henrygraphixs: 9:02am On Jul 20, 2023
Yeah
Re: Chatgpt API Is Ready For Developers by niel63(m): 11:44am On Jul 20, 2023
Maxxim:

If it could be integrated into a customer service platform and could maintain conversations and give more details about certain product, I'll be glad to use it.
But I don't know the possibility

You can achieve this nah, using Langchain LLM, you can feed your agent with the right material
(Data source) and also train it to always improve itself and your data model based on prompts and revisions.

Maybe I'm wrong. cool

But I know I'm not wrong. There are so many already built models that can do this if you refine your search and also looking into hugging face website
Re: Chatgpt API Is Ready For Developers by Maxxim: 4:31pm On Jul 20, 2023
niel63:


You can achieve this nah, using Langchain LLM, you can feed your agent with the right material
(Data source) and also train it to always improve itself and your data model based on prompts and revisions.

Maybe I'm wrong. cool

But I know I'm not wrong. There are so many already built models that can do this if you refine your search and also looking into hugging face website
oh thanks boss, I will definitely make my research on this

2 Likes

Re: Chatgpt API Is Ready For Developers by nuel000: 4:02pm On Jun 16
I have been trying to pay for their API key using my virtual card but they keep declining, has anyone being able to purchase top up for their API key

(1) (Reply)

Introduction To Programming / Introducing My Bus Reservation System. / CONTRACT WORK - Can You Open A DBB File?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 28
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.