mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fixes to mock completion
This commit is contained in:
parent
1b2cf704af
commit
e2ea4adb84
7 changed files with 26 additions and 25 deletions
|
@ -13,11 +13,13 @@ def test_mock_request():
|
|||
try:
|
||||
model = "gpt-3.5-turbo"
|
||||
messages = [{"role": "user", "content": "Hey, I'm a mock request"}]
|
||||
response = litellm.mock_completion(model=model, messages=messages)
|
||||
response = litellm.mock_completion(model=model, messages=messages, stream=False)
|
||||
print(response)
|
||||
print(type(response))
|
||||
except:
|
||||
traceback.print_exc()
|
||||
|
||||
# test_mock_request()
|
||||
def test_streaming_mock_request():
|
||||
try:
|
||||
model = "gpt-3.5-turbo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue