mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
(test) load test
This commit is contained in:
parent
50733363ee
commit
40d9e8ab23
1 changed files with 4 additions and 1 deletions
|
@ -13,10 +13,13 @@ litellm_client = AsyncOpenAI(
|
|||
async def litellm_completion():
|
||||
# Your existing code for litellm_completion goes here
|
||||
try:
|
||||
return await litellm_client.chat.completions.create(
|
||||
response = await litellm_client.chat.completions.create(
|
||||
model="gpt-3.5-turbo",
|
||||
messages=[{"role": "user", "content": f"This is a test: {uuid.uuid4()}"}],
|
||||
)
|
||||
print(response)
|
||||
return response
|
||||
|
||||
except Exception as e:
|
||||
# If there's an exception, log the error message
|
||||
with open("error_log.txt", "a") as error_log:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue