forked from phoenix/litellm-mirror
(test) add text_completion with prompt list
This commit is contained in:
parent
df57e9247a
commit
34751d8562
1 changed files with 17 additions and 1 deletions
|
@ -69,4 +69,20 @@ def test_completion_hf_prompt_array():
|
|||
# response_str = response["choices"][0]["text"]
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_hf_prompt_array()
|
||||
# test_completion_hf_prompt_array()
|
||||
|
||||
|
||||
def test_completion_text_003_prompt_array():
|
||||
try:
|
||||
litellm.set_verbose=False
|
||||
response = text_completion(
|
||||
model="text-davinci-003",
|
||||
prompt=token_prompt, # token prompt is a 2d list
|
||||
)
|
||||
print("\n\n response")
|
||||
|
||||
print(response)
|
||||
# response_str = response["choices"][0]["text"]
|
||||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
# test_completion_text_003_prompt_array()
|
Loading…
Add table
Add a link
Reference in a new issue