Coder Social home page Coder Social logo

raywang / sample-client-for-amazon-bedrock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/sample-client-for-amazon-bedrock

0.0 0.0 0.0 147.73 MB

License: MIT No Attribution

Shell 0.61% JavaScript 1.70% Ruby 0.20% Objective-C 0.01% Java 0.02% Rust 0.05% Kotlin 0.02% Dart 1.17% TypeScript 85.79% Swift 0.10% HTML 0.02% Dockerfile 0.21% SCSS 10.10%

sample-client-for-amazon-bedrock's Introduction

Sample Client for Amazon Bedrock

Sample Client for Amazon Bedrock

English / 简体中文

It is a Bedrock client forked from https://github.com/Yidadaa/ChatGPT-Next-Web/

And it was simplified to support AWS Bedrock only.

Important Notice:

This project is a sample project intended solely to showcase the process of building a chatting client that connects to LLM models like Claude3 on Bedrock. 

It is not a production-ready client, and it should not be used in a production environment without further development and testing.

Installation:

Download the latest version following the links:

For Windows user, unzip the zip file and then double click the msi file to install.

For Mac user, unzip the zip file and then open the BRClient.app directly.

The Mac App files were signed by a community contributor for your convenience. The signer reserves all rights to the signature, and the signed files are not covered by the open-source licenses of this project.

Download links:

Windows:

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/Sample.Client.for.Amazon.Bedrock_1.2.1_x64-setup.exe

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/Sample.Client.for.Amazon.Bedrock_1.2.1_x64_en-US.msi.zip

Mac M Series:

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/Sample.Client.for.Amazon.Bedrock_1.2.1_aarch64.dmg

Mac x86 Series:

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/Sample.Client.for.Amazon.Bedrock_1.2.1_x64.dmg

Linux:

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/sample-client-for-amazon-bedrock_1.2.1_amd64.AppImage.tar.gz

Android:

https://github.com/aws-samples/sample-client-for-amazon-bedrock/releases/download/app-v1.2.1/app-release.apk

iOS:

coming soon!

After the client was launched, click the gear icon to config your AWS region and credentials. Then you are ready to go.

For Developer:

As the project is still in rapid itelating, we would like to suggest developers to build it their own version following the following steps:

  1. git clone current project: git clone https://github.com/aws-samples/sample-client-for-amazon-bedrock.git
  2. install yarn on your desktop
  3. go to the project folder
  4. run yarn install to install all the dependences of the project
  5. run yarn app:dev to start a desktop app in developer mode. or: run yarn dev to start a local server and then access the app with browser.
  6. Optional, if you want to run it as an app, run yarn app:build to build it, and the find the target file (we believe you can, :-)

IAM Permissions

To get started with BRClient, you must create an IAM user and generate Access Key/Secret Key. You have two options:

  • Option 1: Use the Managed Policy (Quick Setup)

    • Go to Identity and Access Management (IAM) -> Users -> Create User
    • Set permissions -> Select "Attach policies directly"
    • Choose AmazonBedrockFullAccess
    • Click Next -> Create User
  • Option 2: Set Least-Privilege Permissions

    • When setting permissions with IAM policies, grant only the permissions required to perform a task. This is known as least-privilege permissions. Here's an example of least-privilege IAM Permissions for BRClient:
      {
      "Version": "2012-10-17",
      "Statement": [
          {
          "Sid": "LeastPrivilege4BRClient",
          "Effect": "Allow",
          "Action": [
              "bedrock:InvokeModel",
              "bedrock:InvokeModelWithResponseStream"
          ],
          "Resource": "arn:aws:bedrock:*::foundation-model/*"
          }
      ]
      }

For more details about Amazon Bedrock identity-based policy, please visit Link

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

sample-client-for-amazon-bedrock's People

Contributors

glayyiyi avatar autojunjie avatar stevensu1977 avatar damondeng avatar amazon-auto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.