Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
doc: update the way to fill out Bard API
Browse files Browse the repository at this point in the history
  • Loading branch information
ciuzaak committed Jul 20, 2023
1 parent 21cf814 commit a8a91e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

This is a Telegram bot that intereacts with **Anthropic Claude** and **Google Bard**.

Before using this bot, you need to apply for access credentials for Claude and Bard respectively:

- Join waitlists: [Claude](https://www.anthropic.com/earlyaccess/) | [Bard](https://bard.google.com/signup)

- Obtain APIs: [Claude (official)](https://console.anthropic.com/account/keys) | [Bard (reverse engineered)](https://github.com/acheong08/Bard)
- Obtain APIs: [Claude (official)](https://console.anthropic.com/account/keys) | [Bard (reverse engineered)](https://github.com/acheong08/Bard#authentication)

If you only have access to one of the models, you can still continue to use this bot. Some functions may be limited due to lack of authorization for the other model.

## Features

- Support of [official Claude API](https://console.anthropic.com/account/keys) and [reverse engineered Bard API](https://github.com/acheong08/Bard)
- Support of official Claude API and reverse engineered Bard API
- Support of partial Markdown formatting
- Send extremely long inputs in segments
- Resend the question and regenerate the answer
Expand All @@ -27,7 +23,7 @@ If you only have access to one of the models, you can still continue to use this

| Claude | Bard |
| :---------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------: |
| ✅ Non-English <br> ✅ Streaming output <br> ❌ Access to the Internet | ❌ Non-English <br> ❌ Streaming output <br> ✅ Access to the Internet |
| ✅ Streaming output <br> ❌ Access to the Internet | ❌ Streaming output <br> ✅ Access to the Internet |
| <img src="https://user-images.githubusercontent.com/41275670/234178910-422cc3cd-b1bf-4c06-bc51-7c75c0b71b35.gif" alt="demo_claude" width="288"> | <img src="https://user-images.githubusercontent.com/41275670/234179231-ed955dec-a75c-432f-9ec1-44c419998ffd.gif" width="288"> |

## Getting Started
Expand All @@ -44,9 +40,9 @@ If you only have access to one of the models, you can still continue to use this

```bash
export BOT_TOKEN="your bot token"
export USER_IDS="user_id1,user_id2,..."
export USER_IDS="user_id1, user_id2,..."
export CLAUDE_API="your claude api" # ignore it if you don't want to use claude
export BARD_API="your bard api" # ignore it if you don't want to use bard
export BARD_API="__Secure-1PSID, __Secure-1PSIDTS" # ignore it if you don't want to use bard
```

- [How to obtain telegram bot token](https://core.telegram.org/bots/tutorial#obtain-your-bot-token)
Expand Down
2 changes: 1 addition & 1 deletion config/config.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ telegram:
claude:
api: CLAUDE_API_KEY # leave it blank if you don't want to use claude
bard:
api: BARD_API_KEY # leave it blank if you don't want to use bard
api: BARD_API_KEY (__Secure-1PSID, __Secure-1PSIDTS) # leave it blank if you don't want to use bard

0 comments on commit a8a91e8

Please sign in to comment.