Skip to content

Commit 2307871

Browse files
chore: add .env.example, ignore real env files, update README setup (#3147)
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
1 parent ec32a55 commit 2307871

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.env renamed to .env.example

File renamed without changes.

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,9 @@ benchmark/gaia/results.jsonl
432432
# Secret files for docker
433433
.container/.env
434434

435-
# Environment variables file
436-
.env
435+
# Environment variables files (ignore real envs, keep examples)
436+
/.env*
437+
!/.env*.example
437438

438439
##### Node.js/TypeScript.gitignore #####
439440
# Hybrid Browser Toolkit TypeScript
@@ -462,4 +463,4 @@ yarn-error.log*
462463
*.tgz
463464

464465
# Yarn Integrity file
465-
.yarn-integrity
466+
.yarn-integrity

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ This example demonstrates how to create a `ChatAgent` using the CAMEL framework
246246
export OPENAI_API_KEY='your_openai_api_key'
247247
```
248248

249+
Alternatively, use a `.env` file:
250+
251+
```bash
252+
cp .env.example .env
253+
# then edit .env and add your keys
254+
```
255+
249256
3. **Run the following Python code:**
250257

251258
```python
@@ -608,4 +615,4 @@ The source code is licensed under Apache 2.0.
608615
[reddit-url]: https://www.reddit.com/r/CamelAI/
609616
[reddit-image]: https://img.shields.io/reddit/subreddit-subscribers/CamelAI?style=plastic&logo=reddit&label=r%2FCAMEL&labelColor=white
610617
[ambassador-url]: https://www.camel-ai.org/community
611-
[package-download-url]: https://pypi.org/project/camel-ai
618+
[package-download-url]: https://pypi.org/project/camel-ai

0 commit comments

Comments
 (0)