Skip to content

Commit fef0e3d

Browse files
committed
using claude now
1 parent 04d9b8b commit fef0e3d

8 files changed

+1072
-15
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
TELEGRAM_BOT_TOKEN=your_key
2-
OPENAI_API_KEY=your_key
2+
ANTHROPIC_API_KEY=your_key
33

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.env
22
node_modules
3+
*.pdf

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ A Telegram bot for simulating and role-playing global risk scenarios. Players ca
1010

1111
```
1212
TELEGRAM_BOT_TOKEN=your_key
13-
OPENAI_API_KEY=your_key
13+
ANTHROPIC_API_KEY=your_key
1414
```
1515

16-
You can get an OpenAI key from [platform.openai.com/settings](https://platform.openai.com/settings), and it should have access to the o1 model, which OpenAI is slowly rolling out. You can get a Telegram bot token by following instructions [here](https://core.telegram.org/bots#how-do-i-create-a-bot) (messaging the @BotFather account on Telegram.)
16+
You can get an Anthropic API key from [console.anthropic.com](https://console.anthropic.com/), which provides access to Claude Sonnet 3.7, the model used by this application. You can get a Telegram bot token by following instructions [here](https://core.telegram.org/bots#how-do-i-create-a-bot) (messaging the @BotFather account on Telegram.)
1717

1818
## Usage
1919

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"dependencies": {
3+
"@anthropic-ai/sdk": "^0.38.0",
34
"@dqbd/tiktoken": "^1.0.18",
45
"dotenv": "^16.4.7",
56
"fast-xml-parser": "^4.5.1",
67
"grammy": "^1.34.0",
7-
"openai": "^4.80.1",
88
"winston": "^3.17.0",
99
"yargs": "^17.7.2"
1010
},

0 commit comments

Comments
 (0)