Commit 7f3ad3c
committed
fix(examples): use environment variables for LLM config in hello world
Allow hello world example to use the same LLM_API_KEY and LLM_BASE_URL
environment variables as other examples, enabling consistent configuration
across all examples.
Changes:
- Use os.getenv() for model with default 'openhands/claude-sonnet-4-5-20250929'
- Add base_url parameter from LLM_BASE_URL environment variable
- Add usage_id for better tracking
- Add comments about API key configuration1 parent a612c0a commit 7f3ad3c
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 | | |
10 | | - | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
0 commit comments