Merge pull request #380 from promptmetheus/main

fix set correct mock response
This commit is contained in:
Krish Dholakia 2023-09-16 09:08:37 -07:00 committed by GitHub
commit e5fff9bada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -82,8 +82,7 @@ def mock_completion(model: str, messages: List, stream: bool = False, mock_respo
response = mock_completion_streaming_obj(model_response, mock_response=mock_response, model=model)
return response
completion_response = "This is a mock request"
model_response["choices"][0]["message"]["content"] = completion_response
model_response["choices"][0]["message"]["content"] = mock_response
model_response["created"] = time.time()
model_response["model"] = model
return model_response

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "litellm"
version = "0.1.674"
version = "0.1.675"
description = "Library to easily interface with LLM API providers"
authors = ["BerriAI"]
license = "MIT License"