mirror of
https://github.com/MadcowD/ell.git
synced 2024-09-22 16:14:36 +03:00
updated docs
This commit is contained in:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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!!!"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user