Skip to content

Commit c02f0b4

Browse files
authored
update docs (#276)
* update docs * update docs with note about jupyter
1 parent 576550b commit c02f0b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/getting_started.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ export SCALE_API_KEY="[Your API key]"
3737

3838
You can also add in the line above to your `.zshrc` or `.bash_profile` so it's automatically set for future sessions.
3939

40+
Alternatively, you can also set your API key using either of the following patterns:
41+
```
42+
llmengine.api_engine.api_key = "abc"
43+
llmengine.api_engine.set_api_key("abc")
44+
```
45+
These patterns are useful for Jupyter Notebook users to set API keys without the need for using `os.environ`.
46+
4047
## Example Code
4148

4249
### Sample Completion

0 commit comments

Comments
 (0)