Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
ea4805c
add test coverage for prepare_openai
ibolmo Mar 4, 2025
dc1dc31
refactor: auto configure client if args are not provided
ibolmo Mar 4, 2025
1f0dc76
use new unwrap() and local sdk (temp)
ibolmo Mar 4, 2025
24b75dc
fix v0 async, test coverage, and various improvements
ibolmo Mar 4, 2025
7406abd
add is_async explanation
ibolmo Mar 4, 2025
219c9c6
drop dependency on unwrap() and fix import problems
ibolmo Mar 4, 2025
767f101
add client option to OpenAIAuth deprecated all others
ibolmo Mar 4, 2025
e21ae2b
update tests to use new msw
ibolmo Mar 4, 2025
203a634
add more test coverage and try to wrap as much as possible
ibolmo Mar 4, 2025
73f4f47
update package-lock.json
ibolmo Mar 4, 2025
c17cb47
add test coverage for init
ibolmo Mar 4, 2025
0d8e170
move node/llm.test.ts to js/llm.test.ts
ibolmo Mar 5, 2025
24fe660
improve llm test coverage and fix a bug where llm classifiers were no…
ibolmo Mar 5, 2025
3427b83
improve types
ibolmo Mar 5, 2025
a482458
update pnpm lock
ibolmo Mar 5, 2025
edf25b0
make sure we use 3.9.x
ibolmo Mar 5, 2025
ed70e21
Fix types
ibolmo Mar 5, 2025
05203ad
try removing runtime_checkable
ibolmo Mar 5, 2025
f138e99
affix black to match CI
ibolmo Mar 5, 2025
0edd002
add pyright config
ibolmo Mar 5, 2025
0fd6e2b
fix types round million
ibolmo Mar 5, 2025
b979511
DX improvements
ibolmo Mar 5, 2025
4bf757c
fix types and an old test
ibolmo Mar 5, 2025
bb2a534
vscode worksapce settings
ibolmo Mar 5, 2025
32a556a
export init
ibolmo Mar 5, 2025
02b53aa
bump version
ibolmo Mar 5, 2025
c8fa427
fix protocol and accept OpenAI clients directly
ibolmo Mar 5, 2025
5688ed6
update setup.py with openai
ibolmo Mar 5, 2025
df44b9c
try to use node:utils
ibolmo Mar 6, 2025
4e0456e
remove extra mention of LLMClient and instead mention Client type
ibolmo Mar 6, 2025
9747959
lot's of doc improvements
ibolmo Mar 6, 2025
6216f99
avoid escaping example strings
ibolmo Mar 6, 2025
f5010fd
let's use an object as input to init() (prettier)
ibolmo Mar 6, 2025
2ae1b0c
overhaul readme
ibolmo Mar 6, 2025
d4a150a
fix example
ibolmo Mar 6, 2025
2153749
Merge branch 'main' into bra-2135--azure-openai-autoevals
ibolmo Mar 10, 2025
f745878
Merge branch 'main' into bra-2135--azure-openai-autoevals
ibolmo Mar 13, 2025
44816b5
update moderation docs
ibolmo Mar 13, 2025
8c51826
fix docs
ibolmo Mar 15, 2025
f4e0b57
Merge branch 'main' into bra-2135--azure-openai-autoevals
ibolmo Mar 17, 2025
8614b8f
bump verison
ibolmo Mar 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
OPENAI_API_KEY=your_openai_api_key
BRAINTRUST_API_KEY=your_braintrust_api_key
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source_up
dotenv
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ repos:
(?x)^(
.*\.(json|prisma|yaml)
)$
args: [-L rouge]
args:
- "-L"
- "rouge,afterall"

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.3.2
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.9.21
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"black-formatter.path": ["${workspaceFolder}/venv/bin/black"]
}
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ py: ${VENV_PYTHON_PACKAGES}
VENV_INITIALIZED := venv/.initialized

${VENV_INITIALIZED}:
rm -rf venv && python3 -m venv venv
rm -rf venv && python -m venv venv
@touch ${VENV_INITIALIZED}

VENV_PYTHON_PACKAGES := venv/.python_packages

${VENV_PYTHON_PACKAGES}: ${VENV_INITIALIZED}
bash -c 'source venv/bin/activate && python -m pip install --upgrade pip setuptools build twine openai'
bash -c 'source venv/bin/activate && python -m pip install -e ".[dev]"'
bash -c 'source venv/bin/activate && python -m pip install -e ".[scipy]"' # for local tests
@touch $@

${VENV_PRE_COMMIT}: ${VENV_PYTHON_PACKAGES}
Expand Down
Loading