Skip to content

Commit 62a2747

Browse files
authored
Update README.md
1 parent eefe7ed commit 62a2747

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,18 @@ with TraceGraph coming soon).
273273

274274
## LLM API Setup
275275

276-
Currently we rely on LiteLLM or AutoGen for LLM caching and API-Key management.
277-
By default, LiteLLM is used. Please the documentation there to set the right environment variables for keys and end-point urls.
278-
On the other hand, AutoGen relies on `OAI_CONFIG_LIST`, which is a file you put in your working directory. It has the format of:
276+
Currently we rely on [LiteLLM](https://github.com/BerriAI/litellm) or [AutoGen v0.2](https://github.com/microsoft/autogen/tree/0.2) for LLM caching and API-Key management.
277+
By default, LiteLLM is used. To use it, set the keys as the environment variables, e.g.
278+
279+
```python
280+
import os
281+
os.environ["OPENAI_API_KEY"] = "your-openai-key"
282+
os.environ["ANTHROPIC_API_KEY"] = "your-anthropic-key"
283+
```
284+
285+
Please see the [documentation of LiteLLM](https://docs.litellm.ai/docs/providers) for more details on setting keys and end-point urls.
286+
287+
On the other hand, to use AutoGen, install Trace with autogen flag, `pip install trace-opt[autogen]`. AutoGen relies on `OAI_CONFIG_LIST`, which is a file you put in your working directory. It has the format of:
279288

280289
```json lines
281290
[

0 commit comments

Comments
 (0)