forked from phoenix/litellm-mirror
(fix) locust load test use uuid
This commit is contained in:
parent
37aadba959
commit
4ae51e9fd5
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
from locust import HttpUser, task, between, events
|
from locust import HttpUser, task, between, events
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
import uuid
|
||||||
|
|
||||||
|
|
||||||
class MyUser(HttpUser):
|
class MyUser(HttpUser):
|
||||||
|
@ -20,7 +21,8 @@ class MyUser(HttpUser):
|
||||||
"messages": [
|
"messages": [
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
"content": "this is a very sweet test message from ishaan",
|
"content": f"{uuid.uuid4()} this is a very sweet test message from ishaan"
|
||||||
|
* 100,
|
||||||
},
|
},
|
||||||
{"role": "user", "content": "Hello, how are you?"},
|
{"role": "user", "content": "Hello, how are you?"},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue