From a8a91e8fccd85436a5751776208ddb43ed3b0b3f Mon Sep 17 00:00:00 2001 From: ciuzaak Date: Thu, 20 Jul 2023 20:13:06 +0800 Subject: [PATCH] doc: update the way to fill out Bard API --- README.md | 14 +++++--------- config/config.example.yml | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ff5c280..4a53374 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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
✅ Streaming output
❌ Access to the Internet | ❌ Non-English
❌ Streaming output
✅ Access to the Internet | +| ✅ Streaming output
❌ Access to the Internet | ❌ Streaming output
✅ Access to the Internet | | demo_claude | | ## Getting Started @@ -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) diff --git a/config/config.example.yml b/config/config.example.yml index 0558b49..9c5fdcf 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -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