Skip to content

Commit

Permalink
Merge pull request #8 from quotient-ai/freddiev4/bump-deps
Browse files Browse the repository at this point in the history
Update dependencies & README
  • Loading branch information
freddiev4 authored Dec 17, 2024
2 parents 32555fa + 24b6b0e commit 4c8f546
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ The library also provides an interface to combine multiple judges through the `J
- **LiteLLM:**
- If you would like to use models on other inference providers, `judges` also integrates with `litellm` as an extra dependency. Run `pip install judges[litellm]`, and set the appropriate API keys based on the [LiteLLM Docs](https://docs.litellm.ai/docs/#basic-usage).

> [!TIP]
> If you choose to use `litellm` to use 3rd-party inference providers, and the model you want is not available via the function below, check the docs of the inference provider directly since `litellm` docs may not always be up to date.
To see all models available, run:

```python
Expand Down
4 changes: 2 additions & 2 deletions judges/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def get_available_models():
for model in litellm_models:
models.append({"client": "litellm", "name": model})

models = sorted(models, key=lambda x: x["client"])
return models
models = sorted(models, key=lambda x: (x["client"], x["name"]))
return models
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
description = "A small library for off-the-shelf LLMs as judges."
dependencies = [
"openai == 1.54.5",
"openai == 1.57.4",
]
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -25,7 +25,7 @@ classifiers = [

[project.optional-dependencies]
litellm = [
"litellm==1.54.1",
"litellm==1.55.3",
]
dev = [
"openai-responses==0.11.2",
Expand Down

0 comments on commit 4c8f546

Please sign in to comment.