mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-13 08:27:03 +00:00
Update name (#13676)
This commit is contained in:
parent
bfb980b968
commit
59df16ab92
@ -719,10 +719,9 @@ nouns = [
|
||||
]
|
||||
|
||||
|
||||
def random_name(prefix: str = "test") -> str:
|
||||
def random_name() -> str:
|
||||
"""Generate a random name."""
|
||||
adjective = random.choice(adjectives)
|
||||
noun = random.choice(nouns)
|
||||
number = random.randint(1, 100)
|
||||
|
||||
return f"{prefix}-{adjective}-{noun}-{number}"
|
||||
return f"{adjective}-{noun}-{number}"
|
||||
|
Loading…
Reference in New Issue
Block a user