Skip to content

Releases: phanxuanquang/AI-Handbook

Gemini Pro

16 Dec 10:09
c241279
Compare
Choose a tag to compare

1. Set up project:

1.1. Install Node.js and npm (skip if you had it already):

1.2. Install required packages:

npm install @google/generative-ai express

2. Usage Guidance:

2.1. Get the API key:

Get the APY key HERE, then replace YOUR_API_KEY with you key.

2.2. Start Node.js server:

node Gemini.js

2.3. API Usage:

POST http://localhost:5000/gemini

With request body (example):

{
    "question" : "Hello!"
}

3. Documentaion:

  • Can be found HERE.

Copilot

16 Dec 10:10
c241279
Compare
Choose a tag to compare

1. Set up project:

1.1. Install Python (skip if you had it already):

  • Python (latest version is reccommended)

1.2. Install required package:

pip install sydney-py Flask

2. Usage Guidance:

2.1. Start server:

python Copilot.py

2.2. API Usage:

GET http://localhost:5000/ask?question=YOUR_QUESTION

With YOUR_QUESTION is your question.

3. Documentaion:

  • Can be found HERE.

DialogFlow V2beta1

16 Dec 10:07
75dc709
Compare
Choose a tag to compare

1. Set up project:

1.1. Install Node.js and npm (skip if you had it already):

1.2. Install required packages:

nmp install @google-cloud/dialogflow express

1.3. Create GCP service account and export it as a .JSON file:

  • Detailed guidance can be found HERE.

1.4. Paste the content of your service account .JSON file into service-account.json file.

2. Usage Guidance:

2.1. Start Node.js server:

node DialogFlow.js

2.2. API Usage:

POST http://localhost:5000/dialogflow

With request body (example):

{
    "question" : "Hello!"
}

3. Documentaion:

  • Can be found HERE.