Skip to content

Commit ccc8280

Browse files
fix: X litellm safer variable injection (#26)
* fix: use X_LITELLM instead of plain LITELLM to not mix up with official env vars * bump: bump all versions
1 parent e4abef3 commit ccc8280

26 files changed

+1254
-1248
lines changed

evaluators/azure/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evaluators/azure/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langevals-azure"
3-
version = "0.1.11"
3+
version = "0.1.12"
44
description = "LangEvals Azure Content Safety evaluator for LLM outputs."
55
authors = ["Rogerio Chaves <rogerio@langwatch.ai>", "Yevhenii Budnyk <y.budnyk789@gmail.com>"]
66
license = "MIT"

evaluators/example/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evaluators/example/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langevals-example"
3-
version = "0.1.10"
3+
version = "0.1.11"
44
description = "LangEvals boilerplate example evaluator for LLMs."
55
authors = ["Your Name <your.email@example.com>"]
66
license = "MIT"

evaluators/huggingface/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evaluators/huggingface/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langevals-huggingface"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
description = "Evaluators based on models available on huggingface."
55
authors = [
66
"Rogerio Chaves <rogerio@langwatch.ai>",

evaluators/langevals/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

evaluators/langevals/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langevals-langevals"
3-
version = "0.1.10"
3+
version = "0.1.11"
44
description = "LangEvals core evaluators."
55
authors = ["Rogerio Chaves <rogerio@langwatch.ai>", "Yevhenii Budnyk <y.budnyk789@gmail.com>"]
66
license = "MIT"

evaluators/langevals/tests/test_llm_boolean.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def test_llm_as_judge_atla_ai():
8080
prompt="Is the recipe vegetarian?",
8181
),
8282
env={
83-
"LITELLM_api_key": os.getenv("ATLA_API_KEY", ""),
84-
"LITELLM_api_base": "https://api.atla-ai.com/v1",
83+
"X_LITELLM_api_key": os.getenv("ATLA_API_KEY", ""),
84+
"X_LITELLM_api_base": "https://api.atla-ai.com/v1",
8585
},
8686
)
8787

evaluators/langevals/tests/test_llm_category.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def test_llm_as_judge_atla_ai():
8989
],
9090
),
9191
env={
92-
"LITELLM_api_key": os.getenv("ATLA_API_KEY", ""),
93-
"LITELLM_api_base": "https://api.atla-ai.com/v1",
92+
"X_LITELLM_api_key": os.getenv("ATLA_API_KEY", ""),
93+
"X_LITELLM_api_base": "https://api.atla-ai.com/v1",
9494
},
9595
)
9696

0 commit comments

Comments
 (0)