We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b9ec0 commit 101e772Copy full SHA for 101e772
examples/server/tests/unit/test_embedding.py
@@ -131,8 +131,8 @@ def test_same_prompt_give_same_result():
131
@pytest.mark.parametrize(
132
"content,n_tokens",
133
[
134
- ("I believe the meaning of life is", 7),
135
- ("This is a test", 4),
+ ("I believe the meaning of life is", 9),
+ ("This is a test", 6),
136
]
137
)
138
def test_embedding_usage_single(content, n_tokens):
@@ -155,4 +155,4 @@ def test_embedding_usage_multiple():
155
})
156
assert res.status_code == 200
157
assert res.body['usage']['prompt_tokens'] == res.body['usage']['total_tokens']
158
- assert res.body['usage']['prompt_tokens'] == 2 * 7
+ assert res.body['usage']['prompt_tokens'] == 2 * 9
0 commit comments