@deep-foundation/chatgpt

3.1.0 • Public • Published

chatgpt

The ChatGPT package for Deep allows seamless GPT-3.5/GPT-4 integration in your projects, providing AI-powered conversations.

npm Gitpod Discord

Steps for Starting to Use ChatGPT from Deep

Video instruction: https://www.youtube.com/watch?v=63oAjA536AE

  1. Go to https://github.com/deep-foundation/dev and run Gitpod. image

  2. Wait for the Deep server to start in the terminal. Once it has started, you will see a message: image

  3. After the server starts, open the port tab and click on the link to open port 3007. image

  4. In the new tab, press f12 to open developer console: image

  • And paste following command here and press Enter: const adminId = await deep.id('deep', 'admin'); await deep.login({ linkId: adminId, }); image
  • After clicking the menu on the side, you will see a new interface: image
  1. Insert a query link by right-clicking and holding down the right mouse button. image image

  2. Open the editor by right-clicking and holding down the right mouse button on the query link: image

  • Insert this code: {id:{_gt:942}} and press Ctrl+S to save(if the id of your query connection is not 942, insert its current id instead of 942): image
  1. Click on the query link, and then click on the next button: image
  1. The next step would be to paste the link of the 'PackageQuery' image

  2. Then you need to go to its editor and write the name of the package to be installed, in our case it is: @flakeed/chatgpt and press Ctrs+S: image

  3. After that we can install the package using install link from npm-packager, creating from user to our PackageQuery with package name image image

  4. Click on "promises" to see results of async reactions image

  • ChatGPT package and it dependency Messaging are installed image
  1. Insert the "Join" link from the chatgpt package to the user: image image

  2. Now you can create links to start a chat and chat with ChatGPT:

  • First, you need to create an API key for the ChatGPT API by visiting this link: https://platform.openai.com/account/api-keys: image Then, copy the API key: image

  • Create an OpenAiApiKey link and paste the token from previous step into the editor. Save it by pressing Ctrl+S: image
    image

  • Create a UsesOpenAiApiKey link to make OpenAiApiKey the current token from user to OpenAiApiKey(if you have one link "OpenAiApiKey" then you can skip this step, it is used automatically): image image

  • Using the UsesModel link(if you are satisfied with the default gpt-3.5-turbo model you can skip this step): image And select the model that is on the screen: image Creating from the user to the model, or create another model and specify the desired model in the editor, after which you need to create a UsesModel link from the desired Conversation to the model: image

  • Create a Converstion link: image

  • Create a Message link and enter your question for ChatGPT. Save it by pressing Ctrl+S: image image

  • Create a Reply link from the Message link to the Conversation link: image image After that you can see the response from ChatGPT image

  1. To continue chatting with ChatGPT, create a Message link again and in its editor ask your question and press Ctrl+S, then create a Reply Link from the user's message you just created to the ChatGPT response from the previous request: image image After that we get another response from the bot: image

That's all! You can now continue using ChatGPT by following step 14 as needed.

Readme

Keywords

Package Sidebar

Install

npm i @deep-foundation/chatgpt

Weekly Downloads

4

Version

3.1.0

License

none

Unpacked Size

35.5 kB

Total Files

6

Last publish

Collaborators

  • timax
  • likissdmd
  • prinz_eugen_deep
  • senchapencha
  • korvusmkrt
  • suenot
  • romanxz
  • flakeed
  • l4legenda
  • aruseli
  • freephoenix888
  • konard
  • menzorg
  • ivansglazunov