+
Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.
/ bardie Public archive

Bardie is a simple Express.js application that interacts with the Google Bard Chat API to generate responses to user questions.

Notifications You must be signed in to change notification settings

initID/bardie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bardie

Bardie is a simple Express.js application that interacts with the Bard Chat API to generate responses to user questions. It provides an endpoint /bard that accepts a POST request with a JSON payload containing a question field. The application sends the question to the Bard Chat API and returns the generated response.

Prerequisites

  • Node.js (v14 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:

    git clone https://github.com/initID/bardie.git
  2. Install the dependencies:

    cd bardie
    npm install
  3. Start the application:

    npm start

    The application will be running at http://localhost:3000.

Usage

Send a POST request to the /bard endpoint with the following JSON payload:

{
  "question": "Is Komodo Dragon a dragon even though they can't fly?"
}

The server will respond with the generated response from the Bard Chat API.

Configuration

The application uses environment variables for configuration. The following environment variables can be set:

  • PORT (default: 3000): The port on which the server listens.
  • SECURE1PSID: The secure 1PSID value for authentication with the Bard Chat API.
  • AT_KEY: The AT key for authentication with the Bard Chat API.

These environment variables can be set in a .env file in the project root directory. For more information about obtaining your AT_KEY and SECURE1PSID, refer to the project's configuration.md.

Deploy it in 7 seconds:

Deploy to Cyclic

About

Bardie is a simple Express.js application that interacts with the Google Bard Chat API to generate responses to user questions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载