Skip to content

Commit

Permalink
remove temporary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martinreinhardt01 committed Dec 5, 2023
1 parent 6a30af4 commit c0beb1d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/test_complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,29 +141,6 @@ def test_num_tokens_prompt_total_with_best_of(sync_client: Client, model_name: s
response = sync_client.complete(request, model=model_name)
assert response.num_tokens_prompt_total == len(tokens) * best_of

"""
curl https://api.aleph-alpha.com/complete -X POST -H "Authorization: Bearer $AA_API_TOKEN" -H "Content-Type: application/json"
-d '{ "model": "luminous-base", "prompt": [{ "type": "text", "data": "Hello world"}], "maximum_tokens": 1, "n": 2, "tokens": true }'
{"completions":
[
{
"completion":"!",
"raw_completion":"!",
"completion_tokens":["!"],
"finish_reason":"maximum_tokens"
},
{
"completion":"!",
"raw_completion":"!",
"completion_tokens":["!"],
"finish_reason":"maximum_tokens"
}
],
"model_version":"2022-04",
"num_tokens_prompt_total":4,
"num_tokens_generated":2}
"""

@pytest.mark.system_test
def test_num_tokens_generated_with_best_of(sync_client: Client, model_name: str):
hello_world = [49222, 2998] # Hello world
Expand Down

0 comments on commit c0beb1d

Please sign in to comment.