Skip to content

Commit 68d210e

Browse files
John-Linclaude
andcommitted
docs: move model config from env var to servers_config.json
OPENAI_MODEL is no longer read from env; set "model" in servers_config.json instead. Document per-server timeout and enabled options. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 68942ce commit 68d210e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export TELEGRAM_BOT_TOKEN=""
4141
4242
# OpenAI API
4343
export OPENAI_API_KEY=""
44-
export OPENAI_MODEL="gpt-5.4"
4544
4645
# Local shell (disabled by default)
4746
# export SHELL_ENABLED=1
@@ -67,7 +66,6 @@ If you are using Azure OpenAI (v1 API), set these instead:
6766
```
6867
export OPENAI_API_KEY=""
6968
export OPENAI_BASE_URL="https://<resource-name>.openai.azure.com/openai/v1/"
70-
export OPENAI_MODEL="gpt-5.4"
7169
```
7270

7371
## MCP Server Configuration (Optional)
@@ -76,6 +74,7 @@ Create a `servers_config.json` file to add your MCP servers. If this file is not
7674

7775
```json
7876
{
77+
"model": "gpt-5.4",
7978
"mcpServers": {
8079
"my-server": {
8180
"command": "uvx",
@@ -85,6 +84,8 @@ Create a `servers_config.json` file to add your MCP servers. If this file is not
8584
}
8685
```
8786

87+
`model` is optional and defaults to `gpt-5.4`. Each MCP server also accepts `timeout` (seconds, default `30.0`) and `enabled` (default `true`).
88+
8889
For HTTP-based MCP servers (Streamable HTTP), use `url`:
8990

9091
```json
@@ -219,7 +220,6 @@ docker run -d \
219220
-e BOT_USERNAME="@your_bot_username" \
220221
-e TELEGRAM_BOT_TOKEN="" \
221222
-e OPENAI_API_KEY="" \
222-
-e OPENAI_MODEL="gpt-5.4" \
223223
-v /path/to/instructions.md:/app/instructions.md \
224224
-v /path/to/access.json:/app/access.json \
225225
agentic-telegram-bot
@@ -233,7 +233,6 @@ docker run -d \
233233
-e BOT_USERNAME="@your_bot_username" \
234234
-e TELEGRAM_BOT_TOKEN="" \
235235
-e OPENAI_API_KEY="" \
236-
-e OPENAI_MODEL="gpt-5.4" \
237236
-v /path/to/instructions.md:/app/instructions.md \
238237
-v /path/to/servers_config.json:/app/servers_config.json \
239238
-v /path/to/access.json:/app/access.json \

0 commit comments

Comments
 (0)