updated docs

This commit is contained in:
William Guss
2024-09-11 23:50:42 -07:00
parent e742b532ad
commit a890745e94
4 changed files with 17 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ jobs:
run: |
cd docs
rm -rf _build # Remove existing build directory
poetry run python -c "import ell; print(ell.__version__)" > src/_static/ell_version.txt
poetry run python -c "import ell; version = ell.__version__; print(version); with open('src/_static/ell_version.txt', 'w') as f: f.write(version)"
poetry run make html # Use poetry run to ensure the correct environment is used
# env:

View File

@@ -25,7 +25,13 @@ OpenAI API Key
~~~~~~~~~~~~~~
1. Get API key from https://platform.openai.com/account/api-keys
2. Set environment variable:
2. Install the OpenAI Python package:
.. code-block:: bash
pip install openai
3. Set environment variable:
- Windows:
@@ -44,7 +50,13 @@ Anthropic API Key
~~~~~~~~~~~~~~~~~
1. Get API key from https://www.anthropic.com/
2. Set environment variable:
2. Install the Anthropic Python package:
.. code-block:: bash
pip install anthropic
3. Set environment variable:
- Windows:

View File

@@ -1,6 +1,6 @@
import ell # type: ignore
@ell.simple(model="claude-3-5-sonnet-20240620", max_tokens=12)
@ell.simple(model="claude-3-5-sonnet-20240620", max_tokens=100)
def hello_from_claude():
"""You are an AI assistant. Your task is to respond to the user's message with a friendly greeting."""
return "Say hello to the world!!!"

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "ell-ai"
version = "0.0.3"
version = "0.0.4"
description = "ell - the language model programming library"
authors = ["William Guss <will@lrsys.xyz>"]
license = "MIT"