mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +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."""
|
"""Generate a random name."""
|
||||||
adjective = random.choice(adjectives)
|
adjective = random.choice(adjectives)
|
||||||
noun = random.choice(nouns)
|
noun = random.choice(nouns)
|
||||||
number = random.randint(1, 100)
|
number = random.randint(1, 100)
|
||||||
|
return f"{adjective}-{noun}-{number}"
|
||||||
return f"{prefix}-{adjective}-{noun}-{number}"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user