Skip to content

Commit

Permalink
[ Fix ] for the failing embedchain tests (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
parshvadaftari authored Sep 25, 2024
1 parent 5525c4e commit 44ee48e
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
"input_cost_per_token": 0.000005,
"output_cost_per_token": 0.000015
},
"gpt-4o-mini": {
"openai/gpt-4o-mini": {
"max_tokens": 4096,
"max_input_tokens": 128000,
"max_output_tokens": 4096,
"input_cost_per_token": 0.00000015,
"output_cost_per_token": 0.00000060
},
"gpt-4o-mini-2024-07-18": {
"openai/gpt-4o-mini-2024-07-18": {
"max_tokens": 4096,
"max_input_tokens": 128000,
"max_output_tokens": 4096,
Expand Down
91 changes: 66 additions & 25 deletions embedchain/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion embedchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ chromadb = "^0.4.24"
posthog = "^3.0.2"
rich = "^13.7.0"
beautifulsoup4 = "^4.12.2"
pypdf = "^4.0.1"
pypdf = "^5.0.0"
gptcache = "^0.1.43"
pysbd = "^0.3.4"
mem0ai = "^0.1.15"
Expand Down Expand Up @@ -139,6 +139,7 @@ alembic = "^1.13.1"
langchain-cohere = "^0.1.4"
langchain-community = "^0.2.6"
langchain-aws = {version = "^0.1.10", optional = true}
langsmith = "^0.1.17"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down
2 changes: 1 addition & 1 deletion embedchain/tests/llm/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_get_llm_model_answer_with_token_usage(config, mocker):
"prompt_tokens": 1,
"completion_tokens": 2,
"total_tokens": 3,
"total_cost": 5.5e-06,
"total_cost": 1.35e-06,
"cost_currency": "USD",
}
mocked_get_answer.assert_called_once_with("Test query", test_config)
Expand Down

0 comments on commit 44ee48e

Please sign in to comment.